Skip to content

Commit 5c55602

Browse files
authored
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
1 parent aa9cc39 commit 5c55602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2675,7 +2675,7 @@ def _basicOptionValidation():
26752675
logger.warning(warnMsg)
26762676

26772677

2678-
if conf.cookieDel and len(conf.cookieDel):
2678+
if conf.cookieDel and len(conf.cookieDel) != 1:
26792679
errMsg = "option '--cookie-del' should contain a single character (e.g. ';')"
26802680
raise SqlmapSyntaxException(errMsg)
26812681

0 commit comments

Comments
 (0)