mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Minor bug fix to --cookie-urlencode
This commit is contained in:
parent
c4215ce8d2
commit
505647b00f
2 changed files with 5 additions and 7 deletions
|
|
@ -28,9 +28,10 @@ import re
|
|||
import StringIO
|
||||
import zlib
|
||||
|
||||
from lib.core.common import directoryPath
|
||||
from lib.core.common import sanitizeCookie
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.common import directoryPath
|
||||
from lib.parse.headers import headersParser
|
||||
from lib.parse.html import htmlParser
|
||||
|
||||
|
|
@ -44,6 +45,9 @@ def forgeHeaders(cookie, ua):
|
|||
|
||||
for header, value in conf.httpHeaders:
|
||||
if cookie and header == "Cookie":
|
||||
if conf.cookieUrlencode:
|
||||
cookie = sanitizeCookie(cookie)
|
||||
|
||||
headers[header] = cookie
|
||||
elif ua and header == "User-Agent":
|
||||
headers[header] = ua
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue