Minor patch for an Issue #646

This commit is contained in:
Miroslav Stampar 2014-03-20 13:08:28 +01:00
parent 97fe5e52c2
commit d7f0da5599

View File

@ -1192,7 +1192,7 @@ def parseTargetUrl():
conf.hostname = hostnamePort[0].strip() conf.hostname = hostnamePort[0].strip()
conf.ipv6 = conf.hostname != conf.hostname.strip("[]") conf.ipv6 = conf.hostname != conf.hostname.strip("[]")
conf.hostname = conf.hostname.strip("[]") conf.hostname = conf.hostname.strip("[]").replace(CUSTOM_INJECTION_MARK_CHAR, "")
try: try:
_ = conf.hostname.encode("idna") _ = conf.hostname.encode("idna")