Minor refactoring

This commit is contained in:
Miroslav Stampar
2018-01-15 14:04:41 +01:00
parent 18626656ec
commit 94c170d392
3 changed files with 5 additions and 5 deletions

View File

@@ -1400,9 +1400,9 @@ def parseTargetUrl():
if not re.search(r"^http[s]*://", conf.url, re.I) and not re.search(r"^ws[s]*://", conf.url, re.I):
if ":443/" in conf.url:
conf.url = "https://" + conf.url
conf.url = "https://%s" % conf.url
else:
conf.url = "http://" + conf.url
conf.url = "http://%s" % conf.url
if kb.customInjectionMark in conf.url:
conf.url = conf.url.replace('?', URI_QUESTION_MARKER)