minor fix

This commit is contained in:
Miroslav Stampar 2011-01-16 18:11:35 +00:00
parent 30d6791968
commit 718eef8753

View File

@ -382,10 +382,10 @@ def start():
errMsg += "a higher --level/--risk to use more tests"
if not conf.textOnly and kb.originalPage:
percent = (1.0 * len(kb.originalPage) / len(getFilteredPageContent(kb.originalPage)))
percent = (100.0 * len(getFilteredPageContent(kb.originalPage)) / len(kb.originalPage))
errMsg += " and/or --text-only switch if the target page "
errMsg += "has a low percentage of textual content "
errMsg += "(%.2f%% of page content is text)" % percent
errMsg += "(approximately %.2f%% of page content is text)" % percent
raise sqlmapNotVulnerableException, errMsg
else: