Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03c8e7b

Browse files
committed
Patch for an Issue #810
1 parent 77cb35d commit 03c8e7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,10 +2841,10 @@ def maskSensitiveData(msg):
28412841
Masks sensitive data in the supplied message
28422842
"""
28432843

2844-
retVal = msg
2844+
retVal = getUnicode(msg)
28452845

28462846
for item in filter(None, map(lambda x: conf.get(x), ("hostname", "googleDork", "authCred", "proxyCred", "tbl", "db", "col", "user", "cookie", "proxy"))):
2847-
regex = SENSITIVE_DATA_REGEX % re.sub("(\W)", r"\\\1", item)
2847+
regex = SENSITIVE_DATA_REGEX % re.sub("(\W)", r"\\\1", getUnicode(item))
28482848
while extractRegexResult(regex, retVal):
28492849
value = extractRegexResult(regex, retVal)
28502850
retVal = retVal.replace(value, '*' * len(value))

0 commit comments

Comments
 (0)