Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 263730f

Browse files
committed
Fixes #1840
1 parent 5d7e178 commit 263730f

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,10 +1653,20 @@ def _cleanupOptions():
16531653
conf.testFilter = conf.testFilter.strip('*+')
16541654
conf.testFilter = re.sub(r"([^.])([*+])", "\g<1>.\g<2>", conf.testFilter)
16551655

1656+
try:
1657+
re.compile(conf.testFilter)
1658+
except re.error:
1659+
conf.testFilter = re.escape(conf.testFilter)
1660+
16561661
if conf.testSkip:
16571662
conf.testSkip = conf.testSkip.strip('*+')
16581663
conf.testSkip = re.sub(r"([^.])([*+])", "\g<1>.\g<2>", conf.testSkip)
16591664

1665+
try:
1666+
re.compile(conf.testSkip)
1667+
except re.error:
1668+
conf.testSkip = re.escape(conf.testSkip)
1669+
16601670
if "timeSec" not in kb.explicitSettings:
16611671
if conf.tor:
16621672
conf.timeSec = 2 * conf.timeSec

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.10"
22+
VERSION = "1.0.5.11"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)