Minor patch

This commit is contained in:
Miroslav Stampar
2018-07-27 01:39:04 +02:00
parent 39108bc100
commit ce47b6c76e
3 changed files with 4 additions and 4 deletions

View File

@@ -3454,7 +3454,7 @@ def maskSensitiveData(msg):
retVal = retVal.replace(value, '*' * len(value))
# Just in case (for problematic parameters regarding user encoding)
for match in re.finditer(r"(?i)[ -]-(u|url|data|cookie)( |=)(.*?)( -?-[a-z]|\Z)", retVal):
for match in re.finditer(r"(?i)[ -]-(u|url|data|cookie)( |=)(.*?)(?= -?-[a-z]|\Z)", retVal):
retVal = retVal.replace(match.group(3), '*' * len(match.group(3)))
if getpass.getuser():