mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 14:11:29 +00:00
Fix for an Issue #190
This commit is contained in:
@@ -1301,30 +1301,6 @@ def searchEnvPath(filename):
|
||||
|
||||
return retVal
|
||||
|
||||
def urlEncodeCookieValues(cookieStr):
|
||||
if cookieStr:
|
||||
retVal = ""
|
||||
|
||||
for part in cookieStr.split(';'):
|
||||
index = part.find('=') + 1
|
||||
if index > 0:
|
||||
name = part[:index - 1].strip()
|
||||
value = urlencode(part[index:], convall=True)
|
||||
retVal += "; %s=%s" % (name, value)
|
||||
elif part.strip().lower() != "secure":
|
||||
retVal += "%s%s" % ("%3B", urlencode(part, convall=True))
|
||||
else:
|
||||
retVal += "; secure"
|
||||
|
||||
if retVal.startswith('; '):
|
||||
retVal = retVal[2:]
|
||||
elif retVal.startswith('%3B'):
|
||||
retVal = retVal[3:]
|
||||
|
||||
return retVal
|
||||
else:
|
||||
return None
|
||||
|
||||
def directoryPath(filepath):
|
||||
"""
|
||||
Returns directory path for a given filepath
|
||||
|
||||
@@ -25,7 +25,6 @@ optDict = {
|
||||
"pDel": "string",
|
||||
"cookie": "string",
|
||||
"loadCookies": "string",
|
||||
"cookieUrlencode": "boolean",
|
||||
"dropSetCookie": "boolean",
|
||||
"agent": "string",
|
||||
"randomAgent": "boolean",
|
||||
|
||||
Reference in New Issue
Block a user