1
0
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:
dmiller
2014-04-17 19:50:24 +00:00
parent 9ca584d0b8
commit 6bd9462dd6
3 changed files with 753 additions and 753 deletions

View File

@@ -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

View File

@@ -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.