Skip to content

Commit 1f7ee03

Browse files
committed
Bug fix (place overriden in case of token)
1 parent c188eb5 commit 1f7ee03

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.153"
21+
VERSION = "1.3.5.154"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/connect.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,11 +1082,11 @@ def _adjustParameter(paramString, parameter, newValue):
10821082
if token:
10831083
token.value = token.value.strip("'\"")
10841084

1085-
for place in (PLACE.GET, PLACE.POST):
1086-
if place in conf.parameters:
1087-
if place == PLACE.GET and get:
1085+
for candidate in (PLACE.GET, PLACE.POST):
1086+
if candidate in conf.parameters:
1087+
if candidate == PLACE.GET and get:
10881088
get = _adjustParameter(get, token.name, token.value)
1089-
elif place == PLACE.POST and post:
1089+
elif candidate == PLACE.POST and post:
10901090
post = _adjustParameter(post, token.name, token.value)
10911091

10921092
for i in xrange(len(conf.httpHeaders)):

0 commit comments

Comments
 (0)