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

Skip to content

Commit a81ea88

Browse files
committed
Fixes #1889
1 parent 023dda2 commit a81ea88

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
102102
if place == PLACE.URI:
103103
origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0]
104104
else:
105-
origValue = re.search(r"\w+\Z", origValue.split(BOUNDED_INJECTION_MARKER)[0]).group(0)
105+
origValue = filter(None, (re.search(_, origValue.split(BOUNDED_INJECTION_MARKER)[0]) for _ in (r"\w+\Z", r"[^\"'><]+\Z", r"[^ ]+\Z")))[0].group(0)
106106
origValue = origValue[origValue.rfind('/') + 1:]
107107
for char in ('?', '=', ':'):
108108
if char in origValue:

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.50"
22+
VERSION = "1.0.5.51"
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)