From 57841f00cf8f905019cfe9215f347b3aef04f437 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 4 Oct 2023 12:56:28 +0300 Subject: [PATCH] remove random.seed on all sites by devrama (potential exploit) --- files/helpers/sanitize.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index f426d322b..24457356d 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -879,7 +879,9 @@ def torture_queen(string, key): if string[-5:] == ', and': string = string[:-5] - random.seed(key) + if SITE == 'devrama.net': + random.seed(key) + if random.random() < PHRASE_CHANCE: girl_phrase = random.choice(GIRL_PHRASES) string = girl_phrase.replace("$", string)