Skip to content

Commit 8d35277

Browse files
committed
Fix where stored obfuscated variables didn't properly applied
1 parent 5850d98 commit 8d35277

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.compiler.keywords.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

compiler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ def obfuscate_variables(text: str, use_json: bool = True) -> str:
265265
for pattern in pattens:
266266
for var in findall(pattern, text):
267267
for key in var.split(", "):
268-
if key not in variables:
268+
# Skip if key already exists as a mapping OR if it's already used as an obfuscated value
269+
if key not in variables and key not in variables.values():
269270
obf = key_finder(banned, variables)
270271
variables[key] = obf
271272

0 commit comments

Comments
 (0)