From 9957881040b8359cd6f583dc86cfc4f02ffc6204 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 10 Dec 2010 13:20:59 +0000 Subject: [PATCH] you won't believe commit --- lib/request/inject.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/request/inject.py b/lib/request/inject.py index 8c7c91422..0067f6853 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -32,6 +32,7 @@ from lib.core.enums import EXPECTED from lib.core.enums import PAYLOAD from lib.core.exception import sqlmapNotVulnerableException from lib.core.settings import MIN_TIME_RESPONSES +from lib.core.unescaper import unescaper from lib.request.connect import Connect as Request from lib.request.direct import direct from lib.request.templates import getPageTemplate @@ -464,7 +465,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse if value in ("true", "false"): value = bool(value) else: - value = value != "0" + value = value and value != "0" elif isinstance(value, int): value = bool(value) @@ -490,4 +491,4 @@ def goStacked(expression, silent=False): return payload, page def checkBooleanExpression(expression, expectingNone=False): - return getValue(expression, expected=EXPECTED.BOOL, expectingNone=expectingNone) + return getValue(unescaper.unescape(expression), expected=EXPECTED.BOOL, expectingNone=expectingNone)