minor bug fix

This commit is contained in:
Miroslav Stampar 2011-12-30 14:20:06 +00:00
parent 63bc4ce116
commit 94d43a4135
2 changed files with 3 additions and 3 deletions

View File

@ -411,7 +411,7 @@ def checkSqlInjection(place, parameter, value):
if not Backend.getIdentifiedDbms():
warnMsg = "using unescaped version of the test "
warnMsg += "because of zero knowledge of the "
warnMsg += "back-end DBMS. you can try to "
warnMsg += "back-end DBMS. You can try to "
warnMsg += "explicitly set it using the --dbms "
warnMsg += "option"
singleTimeWarnMessage(warnMsg)

View File

@ -8,9 +8,9 @@ See the file 'doc/COPYING' for copying permission
"""
import codecs
import cStringIO
import re
import os
import StringIO
import threading
from lib.core.common import Backend
@ -75,7 +75,7 @@ class Dump:
def setOutputFile(self):
self.__outputFile = "%s%slog" % (conf.outputPath, os.sep)
self.__outputFP = codecs.open(self.__outputFile, "ab", UNICODE_ENCODING)
self.__outputBP = cStringIO.StringIO()
self.__outputBP = StringIO.StringIO()
def getOutputFile(self):
return self.__outputFile