This commit is contained in:
Dannon Baker
2015-02-14 10:55:17 -05:00
+1 -1
View File
@@ -519,7 +519,7 @@ def mask_password_from_url( url ):
# This can manipulate the input other than just masking password,
# so the previous string replace method is preferred when the
# password doesn't appear twice in the url
split._replace(netloc=split.netloc.replace("%s:%s" % (split.username, split.password), '%s:********' % split.username))
split = split._replace(netloc=split.netloc.replace("%s:%s" % (split.username, split.password), '%s:********' % split.username))
url = urlparse.urlunsplit(split)
return url