mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
minor update
This commit is contained in:
parent
a58b36fe07
commit
8817b2884f
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue