Important fix now that the file writing is unescaped too

This commit is contained in:
Bernardo Damele 2011-02-07 00:56:15 +00:00
parent f0f5d3d3e8
commit 008d434325

View File

@ -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