From 4b641afc46f0f547f217df14b105cb85a9ab9a0b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 13 Oct 2010 14:37:11 +0000 Subject: [PATCH] minor update --- tamper/doubleencode.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tamper/doubleencode.py b/tamper/doubleencode.py index 311eb10e9..04597e6e8 100644 --- a/tamper/doubleencode.py +++ b/tamper/doubleencode.py @@ -1,11 +1,15 @@ import re from lib.core.convert import urlencode +from lib.core.exception import sqlmapUnsupportedFeatureException """ Tampering value -> urlencode(value) """ def tamper(place, value): if value: - value = urlencode(value) + if place != "URI": + value = urlencode(value) + else: + raise sqlmapUnsupportedFeatureException, "can't use tampering module 'doubleencode.py' with 'URI' type injections" return value