mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
Minor refactoring
This commit is contained in:
parent
3f4c010370
commit
9ce2395405
|
@ -506,16 +506,14 @@ def initTargetEnv():
|
||||||
_setDBMS()
|
_setDBMS()
|
||||||
|
|
||||||
if conf.data:
|
if conf.data:
|
||||||
kb.postSpaceToPlus = '+' in conf.data
|
|
||||||
|
|
||||||
if re.search(r'%[0-9a-f]{2}', conf.data, re.I):
|
|
||||||
class _(unicode):
|
class _(unicode):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
original = conf.data
|
original = conf.data
|
||||||
conf.data = _(urldecode(conf.data))
|
conf.data = _(urldecode(conf.data))
|
||||||
setattr(conf.data, UNENCODED_ORIGINAL_VALUE, original)
|
setattr(conf.data, UNENCODED_ORIGINAL_VALUE, original)
|
||||||
else:
|
|
||||||
conf.data = urldecode(conf.data)
|
kb.postSpaceToPlus = '+' in original
|
||||||
|
|
||||||
def setupTargetEnv():
|
def setupTargetEnv():
|
||||||
_createTargetDirs()
|
_createTargetDirs()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user