Less problematic regexes for MsSQL errors

This commit is contained in:
Miroslav Stampar
2016-07-05 09:32:08 +02:00
parent d9315830f9
commit 7ad49f4185
3 changed files with 5 additions and 3 deletions

View File

@@ -42,6 +42,8 @@ class HTMLHandler(ContentHandler):
elif name == "error":
regexp = attrs.get("regexp")
if "SQL" in regexp:
print regexp
if regexp not in kb.cache.regex:
keywords = re.findall("\w+", re.sub(r"\\.", " ", regexp))
keywords = sorted(keywords, key=len)