minor fix regarding last commit

This commit is contained in:
Miroslav Stampar 2011-03-22 12:21:56 +00:00
parent c24ed6e622
commit 9479a68eb5
2 changed files with 4 additions and 2 deletions

View File

@ -78,6 +78,7 @@ def __oneShotErrorUse(expression, field):
if threadData.lastRedirectMsg and threadData.lastRedirectMsg[0] == \
threadData.lastRequestUID else None, re.DOTALL | re.IGNORECASE)
if output:
output = getUnicode(output, kb.pageEncoding)
if isinstance(output, basestring):

View File

@ -65,6 +65,7 @@ def __oneShotUnionUse(expression, unpack=True):
or extractRegexResult(check, removeReflectiveValues(listToStrValue(headers.headers \
if headers else None), payload), re.DOTALL | re.IGNORECASE)
if output:
output = getUnicode(output, kb.pageEncoding)
return output