1
0
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:
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 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

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