Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4cd4f29

Browse files
committed
Merge branch 'master' of github.com:sqlmapproject/sqlmap
2 parents a00cd9b + 4ea0c9e commit 4cd4f29

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

lib/request/connect.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -615,12 +615,9 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
615615
value = agent.replacePayload(value, payload)
616616

617617
else:
618-
if place != PLACE.URI or (value and payload and '?' in value and re.search(r"\?.*%s" % re.escape(payload), value)):
618+
if not skipUrlEncode and place in (PLACE.GET, PLACE.COOKIE, PLACE.URI):
619619
# GET, URI and Cookie need to be throughly URL encoded (POST is encoded down below)
620-
payload = urlencode(payload, '%', False, True) if place in (PLACE.GET, PLACE.COOKIE, PLACE.URI) and not skipUrlEncode else payload
621-
value = agent.replacePayload(value, payload)
622-
elif place == PLACE.URI and (value and payload and '?' in value and re.search(r"%s.*\?" % re.escape(payload), value)):
623-
payload = urlencode(payload, '%')
620+
payload = urlencode(payload, '%', False, place != PLACE.URI)
624621
value = agent.replacePayload(value, payload)
625622

626623
if conf.hpp:

0 commit comments

Comments
 (0)