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

Skip to content

Commit 35fa710

Browse files
committed
Fixes #4084
1 parent f2518f7 commit 35fa710

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/core/agent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
188188
else:
189189
newValue = self.addPayloadDelimiters(newValue)
190190

191-
newValue = newValue.replace(kb.customInjectionMark, REPLACEMENT_MARKER)
192-
retVal = paramString.replace(_, newValue)
191+
if newValue:
192+
newValue = newValue.replace(kb.customInjectionMark, REPLACEMENT_MARKER)
193+
retVal = paramString.replace(_, newValue)
194+
193195
retVal = retVal.replace(kb.customInjectionMark, "").replace(REPLACEMENT_MARKER, kb.customInjectionMark)
194196
elif BOUNDED_INJECTION_MARKER in paramDict[parameter]:
195197
retVal = paramString.replace("%s%s" % (origValue, BOUNDED_INJECTION_MARKER), self.addPayloadDelimiters(newValue))

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.1.46"
21+
VERSION = "1.4.1.47"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)