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

Skip to content

Commit 120d6a4

Browse files
committed
update
1 parent 43a3ac2 commit 120d6a4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tamper/charencode.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
value -> urlencode of nonencoded chars in value
99
"""
1010
def tamper(place, value):
11-
raise sqlmapUnsupportedFeatureException, "can't use tampering module 'charencode.py' with 'URI' type injections"
1211
retVal = value
1312
if value:
1413
if place != "URI":
@@ -22,5 +21,5 @@ def tamper(place, value):
2221
retVal += '%%%X' % ord(value[i])
2322
i += 1
2423
else:
25-
raise sqlmapUnsupportedFeatureException, "can't use tampering module 'charencode.py' with 'URI' type injections"
24+
raise sqlmapUnsupportedFeatureException, "can't use tampering module '%s' with 'URI' type injections" % __name__
2625
return retVal

tamper/doubleencode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ def tamper(place, value):
1111
if place != "URI":
1212
value = urlencode(value)
1313
else:
14-
raise sqlmapUnsupportedFeatureException, "can't use tampering module 'doubleencode.py' with 'URI' type injections"
14+
raise sqlmapUnsupportedFeatureException, "can't use tampering module '%s' with 'URI' type injections" % __name__
1515
return value

0 commit comments

Comments
 (0)