mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
fix for Bug #164 (Proper usage of special characters in paths)
This commit is contained in:
parent
bece99908c
commit
1bdf94f236
4 changed files with 12 additions and 8 deletions
|
|
@ -24,6 +24,7 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
import re
|
||||
|
||||
from StringIO import StringIO
|
||||
from xml.sax import parse
|
||||
from xml.sax.handler import ContentHandler
|
||||
|
||||
|
|
@ -68,7 +69,7 @@ def htmlParser(page):
|
|||
checkFile(xmlfile)
|
||||
page = sanitizeStr(page)
|
||||
handler = htmlHandler(page)
|
||||
parse(xmlfile, handler)
|
||||
parse(StringIO(open(xmlfile).read()), handler)
|
||||
|
||||
if handler.dbms and handler.dbms not in kb.htmlFp:
|
||||
kb.htmlFp.append(handler.dbms)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue