mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 21:13:51 +03:00
minor update
This commit is contained in:
parent
a58b36fe07
commit
8817b2884f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user