From 5c556022961d5b61fb3fe1cd4f873c4748e1a53d Mon Sep 17 00:00:00 2001 From: CrazyKidJack <43480837+CrazyKidJack@users.noreply.github.com> Date: Mon, 17 Oct 2022 04:59:17 -0500 Subject: [PATCH] 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 --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index 78b2f62b2..306af7422 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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)