Potential patch for #2826

This commit is contained in:
Miroslav Stampar
2017-12-13 13:22:42 +01:00
parent acd764fee8
commit 9a2cdd4b59
3 changed files with 5 additions and 5 deletions

View File

@@ -3809,7 +3809,7 @@ def randomizeParameterValue(value):
@cachedmethod
def asciifyUrl(url, forceQuote=False):
"""
Attempts to make a unicode URL usuable with ``urllib/urllib2``.
Attempts to make a unicode URL usable with ``urllib/urllib2``.
More specifically, it attempts to convert the unicode object ``url``,
which is meant to represent a IRI, to an unicode object that,
@@ -3874,7 +3874,7 @@ def asciifyUrl(url, forceQuote=False):
if port:
netloc += ':' + str(port)
return urlparse.urlunsplit([parts.scheme, netloc, path, query, parts.fragment])
return urlparse.urlunsplit([parts.scheme, netloc, path, query, parts.fragment]) or url
def isAdminFromPrivileges(privileges):
"""