mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor update
This commit is contained in:
parent
d2ec132469
commit
9a08f7feb8
|
@ -1128,7 +1128,9 @@ def preparePageForLineComparison(page):
|
|||
def getFilteredPageContent(page):
|
||||
retVal = page
|
||||
if isinstance(page, basestring):
|
||||
retVal = re.sub(r"(?s)<script.+?</script>|<style.+?</style>|<[^>]+>|\t|\n|\r", "", page)
|
||||
retVal = re.sub(r"(?s)<script.+?</script>|<style.+?</style>|<[^>]+>|\t|\n|\r", " ", page)
|
||||
while retVal.find(" ") != -1:
|
||||
retVal = retVal.replace(" ", " ")
|
||||
return retVal
|
||||
|
||||
def getPageTextWordsSet(page):
|
||||
|
|
Loading…
Reference in New Issue
Block a user