From c3a6b71023c03b4b40072cc3221eb051345e7060 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 5 Dec 2019 13:50:16 +0100 Subject: [PATCH] Fixes #4025 --- lib/core/option.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index bc7e8572e..a7c7cbd20 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -2466,6 +2466,10 @@ def _basicOptionValidation(): errMsg = "invalid regular expression '%s' ('%s')" % (conf.paramExclude, getSafeExString(ex)) raise SqlmapSyntaxException(errMsg) + if conf.cookieDel and len(conf.cookieDel): + errMsg = "option '--cookie-del' should contain a single character (e.g. ';')" + raise SqlmapSyntaxException(errMsg) + if conf.crawlExclude: try: re.compile(conf.crawlExclude)