From 008d434325c633766af835730bad0833001c743c Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 7 Feb 2011 00:56:15 +0000 Subject: [PATCH] Important fix now that the file writing is unescaped too --- plugins/generic/filesystem.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/generic/filesystem.py b/plugins/generic/filesystem.py index f0f2a387d..0efac21a8 100644 --- a/plugins/generic/filesystem.py +++ b/plugins/generic/filesystem.py @@ -164,14 +164,14 @@ class Filesystem: if not single: fcLength = len(fcEncodedStr) - if fcLength > 1024: - for i in range(0, fcLength, 1024): + if fcLength > 256: + for i in range(0, fcLength, 256): string = "" if encoding == "hex": string += "0x" - string += fcEncodedStr[i:i+1024] + string += fcEncodedStr[i:i+256] if encoding == "base64": string = "'%s'" % string