From 92286104e376a0a4650aadc32faf960a135f63ac Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 24 May 2012 21:39:10 +0000 Subject: [PATCH] minor just in case update --- lib/core/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index dfa19e3c4..77dd8aae2 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1072,7 +1072,7 @@ def parseTargetUrl(): errMsg += "on this platform" raise sqlmapGenericException, errMsg - if not re.search("^http[s]*://", conf.url): + if not re.search("^http[s]*://", conf.url, re.I): if ":443/" in conf.url: conf.url = "https://" + conf.url else: @@ -1084,7 +1084,7 @@ def parseTargetUrl(): __urlSplit = urlparse.urlsplit(conf.url) __hostnamePort = __urlSplit[1].split(":") if not re.search("\[.+\]", __urlSplit[1]) else filter(None, (re.search("\[.+\]", __urlSplit[1]).group(0), re.search("\](:(?P\d+))?", __urlSplit[1]).group("port"))) - conf.scheme = __urlSplit[0].strip() if not conf.forceSSL else "https" + conf.scheme = __urlSplit[0].strip().lower() if not conf.forceSSL else "https" conf.path = __urlSplit[2].strip() conf.hostname = __hostnamePort[0].strip()