mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Revert of patch for an Issue #347
This commit is contained in:
@@ -86,7 +86,6 @@ from lib.core.settings import DEFAULT_GET_POST_DELIMITER
|
||||
from lib.core.settings import DEFAULT_MSSQL_SCHEMA
|
||||
from lib.core.settings import DEPRECATED_OPTIONS
|
||||
from lib.core.settings import DESCRIPTION
|
||||
from lib.core.settings import DOLLAR_MARKER
|
||||
from lib.core.settings import DUMMY_SQL_INJECTION_CHARS
|
||||
from lib.core.settings import DUMMY_USER_INJECTION
|
||||
from lib.core.settings import DYNAMICITY_MARK_LENGTH
|
||||
@@ -2042,10 +2041,6 @@ def urlencode(value, safe="%&=", convall=False, limit=False):
|
||||
if all(map(lambda x: '%' in x, [safe, value])) and not kb.tamperFunctions:
|
||||
value = re.sub("%(?![0-9a-fA-F]{2})", "%25", value)
|
||||
|
||||
if '$' in value and '$' not in safe:
|
||||
for match in re.finditer(r"\b([\w$]*\$[\w$]*)=", value):
|
||||
value = value.replace(match.group(1), match.group(1).replace('$', DOLLAR_MARKER))
|
||||
|
||||
while True:
|
||||
result = urllib.quote(utf8encode(value), safe)
|
||||
|
||||
@@ -2061,9 +2056,6 @@ def urlencode(value, safe="%&=", convall=False, limit=False):
|
||||
else:
|
||||
break
|
||||
|
||||
if result:
|
||||
result = result.replace(DOLLAR_MARKER, '$')
|
||||
|
||||
return result
|
||||
|
||||
def runningAsAdmin():
|
||||
|
||||
Reference in New Issue
Block a user