mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Fix some CRLF line endings to LF
This commit is contained in:
@@ -34,22 +34,22 @@ function decode_xml_document(xmldata)
|
|||||||
|
|
||||||
if not xmldata then
|
if not xmldata then
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
|
|
||||||
local newstr = xmldata
|
local newstr = xmldata
|
||||||
local escaped_val
|
local escaped_val
|
||||||
|
|
||||||
while string.match(newstr, "(&#%d+;)" ) do
|
while string.match(newstr, "(&#%d+;)" ) do
|
||||||
escaped_val = string.match(newstr, "(&#%d+;)")
|
escaped_val = string.match(newstr, "(&#%d+;)")
|
||||||
hexval = escaped_val:match("(%d+)")
|
hexval = escaped_val:match("(%d+)")
|
||||||
|
|
||||||
if ( hexval ) then
|
if ( hexval ) then
|
||||||
newstr, _ = newstr:gsub(escaped_val, string.char(hexval))
|
newstr = newstr:gsub(escaped_val, string.char(hexval))
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return newstr
|
return newstr
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
TODO:
|
TODO:
|
||||||
|
|
||||||
-Update wiki page.
|
-Update wiki page.
|
||||||
-Fix: http-enum does not work on windows. UNIX paths are hardcoded into the script. It also fails when running from a directory with spaces in the name.
|
-Fix: http-enum does not work on windows. UNIX paths are hardcoded into the script. It also fails when running from a directory with spaces in the name.
|
||||||
Reference in New Issue
Block a user