mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
updated and renamed sanitizeCookie to urlEncodeCookieValues because of it's different nature than before
This commit is contained in:
parent
505647b00f
commit
f5c422efb4
2 changed files with 10 additions and 9 deletions
|
|
@ -29,7 +29,7 @@ import StringIO
|
|||
import zlib
|
||||
|
||||
from lib.core.common import directoryPath
|
||||
from lib.core.common import sanitizeCookie
|
||||
from lib.core.common import urlEncodeCookieValues
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.parse.headers import headersParser
|
||||
|
|
@ -46,7 +46,7 @@ def forgeHeaders(cookie, ua):
|
|||
for header, value in conf.httpHeaders:
|
||||
if cookie and header == "Cookie":
|
||||
if conf.cookieUrlencode:
|
||||
cookie = sanitizeCookie(cookie)
|
||||
cookie = urlEncodeCookieValues(cookie)
|
||||
|
||||
headers[header] = cookie
|
||||
elif ua and header == "User-Agent":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue