mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
fix for bug reported by m4l1c3 (UnicodeEncodeError)
This commit is contained in:
parent
8cb95583e3
commit
0cab4a5355
|
@ -27,6 +27,7 @@ import re
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from lib.core.common import dataToDumpFile
|
from lib.core.common import dataToDumpFile
|
||||||
|
from lib.core.common import dataToStdout
|
||||||
from lib.core.common import getUnicode
|
from lib.core.common import getUnicode
|
||||||
from lib.core.data import conf
|
from lib.core.data import conf
|
||||||
from lib.core.data import logger
|
from lib.core.data import logger
|
||||||
|
@ -44,12 +45,12 @@ class Dump:
|
||||||
|
|
||||||
def __write(self, data, n=True):
|
def __write(self, data, n=True):
|
||||||
if n:
|
if n:
|
||||||
print data
|
text = "%s\n" % data
|
||||||
self.__outputFP.write("%s\n" % data)
|
|
||||||
else:
|
else:
|
||||||
print data,
|
text = "%s " % data
|
||||||
self.__outputFP.write("%s " % data)
|
|
||||||
|
|
||||||
|
dataToStdout(text)
|
||||||
|
self.__outputFP.write(text)
|
||||||
self.__outputFP.flush()
|
self.__outputFP.flush()
|
||||||
|
|
||||||
conf.loggedToOut = True
|
conf.loggedToOut = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user