mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 13:41:29 +00:00
minor update
This commit is contained in:
@@ -298,7 +298,7 @@ def __setRequestFromFile():
|
|||||||
errMsg += "'%s' has no content" % conf.requestFile
|
errMsg += "'%s' has no content" % conf.requestFile
|
||||||
raise sqlmapFilePathException, errMsg
|
raise sqlmapFilePathException, errMsg
|
||||||
|
|
||||||
if not (lines[0].startswith("GET ") or lines[0].startswith("POST ")):
|
if not (lines[0].upper().startswith("GET ") or lines[0].upper().startswith("POST ")):
|
||||||
errMsg = "the specified HTTP request file "
|
errMsg = "the specified HTTP request file "
|
||||||
errMsg += "doesn't start with GET or POST keyword"
|
errMsg += "doesn't start with GET or POST keyword"
|
||||||
raise sqlmapFilePathException, errMsg
|
raise sqlmapFilePathException, errMsg
|
||||||
@@ -309,7 +309,7 @@ def __setRequestFromFile():
|
|||||||
else:
|
else:
|
||||||
index = 5
|
index = 5
|
||||||
|
|
||||||
if lines[0].find(" HTTP/") == -1:
|
if lines[0].upper().find(" HTTP/") == -1:
|
||||||
errMsg = "the specified HTTP request file "
|
errMsg = "the specified HTTP request file "
|
||||||
errMsg += "has a syntax error at line: 1"
|
errMsg += "has a syntax error at line: 1"
|
||||||
raise sqlmapFilePathException, errMsg
|
raise sqlmapFilePathException, errMsg
|
||||||
|
|||||||
Reference in New Issue
Block a user