From d700e50b365489f819e5f11ac027b74bfa6c3072 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 10 Dec 2014 06:37:17 +0100 Subject: [PATCH] Minor update related to the Issue #993 --- lib/techniques/error/use.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 47098eb44..37630b04b 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -134,6 +134,12 @@ def _oneShotErrorUse(expression, field=None): check = "(?P.*?)%s" % kb.chars.stop[:2] output = extractRegexResult(check, trimmed, re.IGNORECASE) + if not output: + check = "(?P[^\s<>'\"]+)" + output = extractRegexResult(check, trimmed, re.IGNORECASE) + else: + output = output.rstrip() + if any(Backend.isDbms(dbms) for dbms in (DBMS.MYSQL, DBMS.MSSQL)): if offset == 1: retVal = output