minor beautification

This commit is contained in:
Miroslav Stampar
2011-07-31 10:21:47 +00:00
parent 93ae1dfa2b
commit 0627bb02cb
2 changed files with 2 additions and 2 deletions

View File

@@ -2636,7 +2636,7 @@ def maskSensitiveData(msg):
retVal = msg
for item in filter(lambda x: x, map(lambda x: conf.get(x), ['hostname', 'googleDork', 'aCred', 'pCred', 'tbl', 'db', 'col', 'user', 'cookie'])):
for item in filter(None, map(lambda x: conf.get(x), ['hostname', 'googleDork', 'aCred', 'pCred', 'tbl', 'db', 'col', 'user', 'cookie'])):
regex = SENSITIVE_DATA_REGEX % item
while extractRegexResult(regex, retVal):
value = extractRegexResult(regex, retVal)