mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Minor bug fix and layout adjustment regarding --threading and standard output
This commit is contained in:
@@ -500,9 +500,13 @@ def checkFile(filename):
|
||||
|
||||
if not os.path.exists(filename):
|
||||
raise sqlmapFilePathException, "unable to read file '%s'" % filename
|
||||
|
||||
def replaceNewlineTabs(inpStr):
|
||||
replacedString = inpStr.replace("\n", "__NEWLINE__").replace("\t", "__TAB__")
|
||||
|
||||
def replaceNewlineTabs(inpStr, stdout=False):
|
||||
if stdout:
|
||||
replacedString = inpStr.replace("\n", " ").replace("\t", " ")
|
||||
else:
|
||||
replacedString = inpStr.replace("\n", "__NEWLINE__").replace("\t", "__TAB__")
|
||||
|
||||
replacedString = replacedString.replace(temp.delimiter, "__DEL__")
|
||||
|
||||
return replacedString
|
||||
|
||||
Reference in New Issue
Block a user