sanitizeStr screws html error parsing in some cases as new lines are removed (FALSE positives here and there)

This commit is contained in:
Miroslav Stampar 2011-01-27 13:40:42 +00:00
parent bb6e36fb02
commit 539168dcca

View File

@ -13,7 +13,6 @@ from xml.sax.handler import ContentHandler
from lib.core.common import checkFile from lib.core.common import checkFile
from lib.core.common import parseXmlFile from lib.core.common import parseXmlFile
from lib.core.common import sanitizeStr
from lib.core.data import kb from lib.core.data import kb
from lib.core.data import paths from lib.core.data import paths
from lib.core.threads import getCurrentThreadData from lib.core.threads import getCurrentThreadData
@ -56,7 +55,6 @@ def htmlParser(page):
xmlfile = paths.ERRORS_XML xmlfile = paths.ERRORS_XML
checkFile(xmlfile) checkFile(xmlfile)
page = sanitizeStr(page)
handler = htmlHandler(page) handler = htmlHandler(page)
parseXmlFile(xmlfile, handler) parseXmlFile(xmlfile, handler)