mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix a crash with non-ascii paths. Fixes #638
This commit is contained in:
parent
1c4dc13f27
commit
4a42504cc2
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ class ScriptHelpXMLContentHandler (xml.sax.handler.ContentHandler):
|
|||
if u"path" not in attrs:
|
||||
raise ValueError(
|
||||
u'"directory" element did not have "path" attribute')
|
||||
path = attrs[u"path"]
|
||||
path = attrs[u"path"].encode("raw_unicode_escape").decode(sys.getfilesystemencoding())
|
||||
if dirname == u"scripts":
|
||||
self.scripts_dir = path
|
||||
elif dirname == u"nselib":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue