From e6f010734e9ec5034de4cecb3f9c094ce1cab9b0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 3 May 2011 16:14:03 +0000 Subject: [PATCH] minor fix for cases when the retrieved output is safe encoded (like for --os-shell) --- lib/techniques/error/use.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 6956d9cb0..8171c9735 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -113,10 +113,10 @@ def __oneShotErrorUse(expression, field): else: retVal += output if output else '' - if not (output and len(output) == chunk_length): - break - else: + if output and len(output) >= chunk_length: offset += chunk_length + else: + break else: retVal = output break