From 9b024e2337a2a92f7753559da981916139b394c0 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Sat, 14 Feb 2015 10:52:59 -0500 Subject: [PATCH] Fix bug in usage of _replace in masking code. --- lib/galaxy/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/util/__init__.py b/lib/galaxy/util/__init__.py index 26a33f90e08..9d956aca92f 100644 --- a/lib/galaxy/util/__init__.py +++ b/lib/galaxy/util/__init__.py @@ -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