Skip to content

Commit be76928

Browse files
committed
minor fix
1 parent 3f6bc1f commit be76928

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ def maskSensitiveData(msg):
25642564
retVal = msg
25652565

25662566
for item in filter(None, map(lambda x: conf.get(x), ("hostname", "googleDork", "aCred", "pCred", "tbl", "db", "col", "user", "cookie", "proxy"))):
2567-
regex = SENSITIVE_DATA_REGEX % item
2567+
regex = SENSITIVE_DATA_REGEX % re.sub("(\W)", r"\\\1", item)
25682568
while extractRegexResult(regex, retVal):
25692569
value = extractRegexResult(regex, retVal)
25702570
retVal = retVal.replace(value, '*' * len(value))

0 commit comments

Comments
 (0)