Patch for an Issue #1078

This commit is contained in:
Miroslav Stampar 2014-12-30 08:48:50 +00:00
parent 1e014de6be
commit 02d20ccd13

View File

@ -1079,7 +1079,12 @@ def _setHTTPProxy():
debugMsg = "setting the HTTP/SOCKS proxy for all HTTP requests"
logger.debug(debugMsg)
_ = urlparse.urlsplit(conf.proxy)
try:
_ = urlparse.urlsplit(conf.proxy)
except Exception, ex:
errMsg = "invalid proxy address '%s' ('%s')" % (conf.proxy, ex)
raise SqlmapSyntaxException, errMsg
hostnamePort = _.netloc.split(":")
scheme = _.scheme.upper()