Minor patch

This commit is contained in:
Miroslav Stampar
2019-05-03 13:48:41 +02:00
parent e90e800dde
commit 74148e121a
4 changed files with 12 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
import codecs
import os
import sys
@@ -21,6 +22,7 @@ from lib.core.common import isStackingAvailable
from lib.core.common import isTechniqueAvailable
from lib.core.common import readInput
from lib.core.compat import xrange
from lib.core.convert import getText
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
@@ -133,7 +135,7 @@ class Filesystem:
retVal = []
if encoding:
content = content.encode(encoding).replace("\n", "")
content = getText(codecs.encode(content, encoding)).replace("\n", "")
if not single:
if len(content) > chunkSize: