Fix --cookie-del (cookieDel) error checking (#5198)

error checking was checking if len(conf.cookieDel) which always returns true when option is used. Now it checks if len(conf.cookieDel) != 1
This commit is contained in:
CrazyKidJack
2022-10-17 04:59:17 -05:00
committed by GitHub
parent aa9cc3987e
commit 5c55602296

View File

@@ -2675,7 +2675,7 @@ def _basicOptionValidation():
logger.warning(warnMsg)
if conf.cookieDel and len(conf.cookieDel):
if conf.cookieDel and len(conf.cookieDel) != 1:
errMsg = "option '--cookie-del' should contain a single character (e.g. ';')"
raise SqlmapSyntaxException(errMsg)