From 8fe069b4953664463d2ec16c06442f3be28c2fd2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 23 Aug 2011 21:48:39 +0000 Subject: [PATCH] minor fix --- lib/techniques/union/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/techniques/union/test.py b/lib/techniques/union/test.py index cf5b466f9..477a05f24 100644 --- a/lib/techniques/union/test.py +++ b/lib/techniques/union/test.py @@ -119,7 +119,7 @@ def __findUnionCharCount(comment, place, parameter, value, prefix, suffix, where if kb.uChar: for regex in (kb.uChar, r'>\s*%s\s*<' % kb.uChar): - contains = [(count, re.search(regex, page, re.IGNORECASE) is not None) for count, page in pages.items()] + contains = [(count, re.search(regex, page or "", re.IGNORECASE) is not None) for count, page in pages.items()] if len(filter(lambda x: x[1], contains)) == 1: retVal = filter(lambda x: x[1], contains)[0][0] break