mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fix some CRLF line endings to LF
This commit is contained in:
parent
9ca584d0b8
commit
6bd9462dd6
3 changed files with 753 additions and 753 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue