mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +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
|
||||
return ""
|
||||
end
|
||||
|
||||
local newstr = xmldata
|
||||
local escaped_val
|
||||
|
||||
while string.match(newstr, "(&#%d+;)" ) do
|
||||
escaped_val = string.match(newstr, "(&#%d+;)")
|
||||
hexval = escaped_val:match("(%d+)")
|
||||
|
||||
if ( hexval ) then
|
||||
newstr, _ = newstr:gsub(escaped_val, string.char(hexval))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return newstr
|
||||
end
|
||||
|
||||
local newstr = xmldata
|
||||
local escaped_val
|
||||
|
||||
while string.match(newstr, "(&#%d+;)" ) do
|
||||
escaped_val = string.match(newstr, "(&#%d+;)")
|
||||
hexval = escaped_val:match("(%d+)")
|
||||
|
||||
if ( hexval ) then
|
||||
newstr = newstr:gsub(escaped_val, string.char(hexval))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return newstr
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user