mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-23 16:09:03 +00:00
Renaming conf.pDel to conf.paramDel
This commit is contained in:
@@ -541,7 +541,7 @@ def paramToDict(place, parameters=None):
|
||||
if place == PLACE.COOKIE:
|
||||
splitParams = parameters.split(conf.cDel or DEFAULT_COOKIE_DELIMITER)
|
||||
else:
|
||||
splitParams = parameters.split(conf.pDel or DEFAULT_GET_POST_DELIMITER)
|
||||
splitParams = parameters.split(conf.paramDel or DEFAULT_GET_POST_DELIMITER)
|
||||
|
||||
for element in splitParams:
|
||||
element = re.sub(r"%s(.+?)%s" % (PARAMETER_AMP_MARKER, PARAMETER_SEMICOLON_MARKER), r"&\g<1>;", element)
|
||||
@@ -550,7 +550,7 @@ def paramToDict(place, parameters=None):
|
||||
if len(parts) >= 2:
|
||||
parameter = parts[0].replace(" ", "")
|
||||
|
||||
if conf.pDel and conf.pDel == '\n':
|
||||
if conf.paramDel and conf.paramDel == '\n':
|
||||
parts[-1] = parts[-1].rstrip()
|
||||
|
||||
condition = not conf.testParameter
|
||||
|
||||
@@ -1431,8 +1431,8 @@ def _cleanupOptions():
|
||||
else:
|
||||
conf.rParam = []
|
||||
|
||||
if conf.pDel and '\\' in conf.pDel:
|
||||
conf.pDel = conf.pDel.decode("string_escape")
|
||||
if conf.paramDel and '\\' in conf.paramDel:
|
||||
conf.paramDel = conf.paramDel.decode("string_escape")
|
||||
|
||||
if conf.skip:
|
||||
conf.skip = conf.skip.replace(" ", "")
|
||||
|
||||
@@ -23,7 +23,7 @@ optDict = {
|
||||
|
||||
"Request": {
|
||||
"data": "string",
|
||||
"pDel": "string",
|
||||
"paramDel": "string",
|
||||
"cookie": "string",
|
||||
"cDel": "string",
|
||||
"loadCookies": "string",
|
||||
|
||||
Reference in New Issue
Block a user