From 9b2d61831bb8fcd83890aa8f862cfbdc5887d7f4 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 27 Aug 2022 13:02:56 +0100 Subject: [PATCH] Combine obfuscated date and time to avoid leak --- core/views/helpers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/views/helpers.py b/core/views/helpers.py index ea1af94..4e51d2b 100644 --- a/core/views/helpers.py +++ b/core/views/helpers.py @@ -124,6 +124,12 @@ def obfuscate_list(user, data): second_part[index_x] = "*" * x_len result = sep.join([*first_part, *second_part]) data[index][key] = result + for key in settings.COMBINE_FIELDS: + for index, item in enumerate(data): + if key in item: + k1, k2 = settings.COMBINE_FIELDS[key] + if k1 in item and k2 in item: + data[index][key] = item[k1] + item[k2] def hash_list(user, data, hash_keys=False):