diff --git a/lib/core/option.py b/lib/core/option.py index 7e6cac63d..24eb466e3 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -995,7 +995,7 @@ def _setHTTPHandlers(): errMsg = "invalid proxy address '%s' ('%s')" % (conf.proxy, getSafeExString(ex)) raise SqlmapSyntaxException(errMsg) - hostnamePort = _.netloc.split(":") + hostnamePort = _.netloc.rsplit(":", 1) scheme = _.scheme.upper() hostname = hostnamePort[0]