mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
layout adjustment
This commit is contained in:
parent
9a4ae7d9e2
commit
00f14bec5f
|
@ -1357,6 +1357,7 @@ def safeStringFormat(formatStr, params):
|
|||
retVal = retVal[:index] + getUnicode(params[count]) + retVal[index+2:]
|
||||
else:
|
||||
raise sqlmapNoneDataException, "wrong number of parameters during string formatting"
|
||||
|
||||
count += 1
|
||||
|
||||
return retVal
|
||||
|
@ -1364,10 +1365,12 @@ def safeStringFormat(formatStr, params):
|
|||
def sanitizeAsciiString(subject):
|
||||
if subject:
|
||||
index = None
|
||||
|
||||
for i in xrange(len(subject)):
|
||||
if ord(subject[i]) >= 128:
|
||||
index = i
|
||||
break
|
||||
|
||||
if index is None:
|
||||
return subject
|
||||
else:
|
||||
|
@ -1380,6 +1383,7 @@ def getFilteredPageContent(page, onlyText=True):
|
|||
|
||||
if isinstance(page, basestring):
|
||||
retVal = re.sub(r"(?s)<script.+?</script>|<!--.+?-->|<style.+?</style>%s" % (r"|<[^>]+>|\t|\n|\r" if onlyText else ""), " ", page)
|
||||
|
||||
while retVal.find(" ") != -1:
|
||||
retVal = retVal.replace(" ", " ")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user