Fix retry-on check on empty response

This commit is contained in:
Your Name 2026-06-02 13:36:13 +02:00
parent 220a75b230
commit c07b15666c
3 changed files with 4 additions and 4 deletions

View file

@ -994,7 +994,7 @@ class Connect(object):
# Dirty patch for Python3.11.0a7 (e.g. https://github.com/sqlmapproject/sqlmap/issues/5091)
if not sys.version.startswith("3.11."):
if conf.retryOn and re.search(conf.retryOn, page, re.I):
if conf.retryOn and re.search(conf.retryOn, page or "", re.I):
if threadData.retriesCount < conf.retries:
warnMsg = "forced retry of the request because of undesired page content"
logger.warning(warnMsg)