fix for a crash with partial union and --hex

This commit is contained in:
Miroslav Stampar 2012-03-14 10:31:24 +00:00
parent a7fbc55748
commit 61ad3b999a
2 changed files with 7 additions and 3 deletions

View File

@ -1245,7 +1245,6 @@ def parseUnionPage(output, unique=True):
for entry in output:
entry = entry.group(1)
entry = decodeHexValue(entry) if conf.hexConvert else entry
if unique:
key = entry.lower()
@ -1256,9 +1255,14 @@ def parseUnionPage(output, unique=True):
else:
continue
entry = safecharencode(entry) if kb.safeCharEncode else entry
entry = entry.split(kb.chars.delimiter)
if conf.hexConvert:
entry = applyFunctionRecursively(entry, decodeHexValue)
if kb.safeCharEncode:
entry = applyFunctionRecursively(entry, safecharencode)
data.append(entry[0] if len(entry) == 1 else entry)
else:
data = output

View File

@ -136,7 +136,7 @@ class Web:
logger.info(infoMsg)
default = None
choices = ['asp', 'aspx', 'php', 'jsp']
choices = ('asp', 'aspx', 'php', 'jsp')
for ext in choices:
if conf.url.endswith(ext):