Fix for --param-del being URL encoded in GET requests

This commit is contained in:
Miroslav Štampar 2026-11-12 14:28:47 +01:00
parent da5c2c66c6
commit fec03cf662
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.11.29"
VERSION = "1.10.11.30"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View file

@ -500,7 +500,7 @@ class Connect(object):
get = conf.parameters[PLACE.GET]
if not conf.skipUrlEncode:
get = urlencode(get, limit=True)
get = urlencode(get, safe="%%&=-_%s" % (conf.paramDel or ""), limit=True)
if get:
if '?' in url:
@ -1678,7 +1678,7 @@ class Connect(object):
cookie += "%s%s=%s" % (conf.cookieDel or DEFAULT_COOKIE_DELIMITER, name, entry)
if not conf.skipUrlEncode:
get = urlencode(get, limit=True)
get = urlencode(get, safe="%%&=-_%s" % (conf.paramDel or ""), limit=True)
if post is not None:
if place not in (PLACE.POST, PLACE.CUSTOM_POST) and hasattr(post, UNENCODED_ORIGINAL_VALUE):