mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Changed get logs to hanndle ints correctly (#4460)
This commit is contained in:
parent
8d9c84236d
commit
8e662a5179
|
@ -601,7 +601,7 @@ def scan_log_limited(taskid, start, end):
|
|||
logger.warning("[%s] Invalid task ID provided to scan_log_limited()" % taskid)
|
||||
return jsonize({"success": False, "message": "Invalid task ID"})
|
||||
|
||||
if not start.isdigit() or not end.isdigit() or end < start:
|
||||
if not start.isdigit() or not end.isdigit() or int(end) < int(start):
|
||||
logger.warning("[%s] Invalid start or end value provided to scan_log_limited()" % taskid)
|
||||
return jsonize({"success": False, "message": "Invalid start or end value, must be digits"})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user