mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
The utf8_enc function had a missing referrence to the unicode library.
Fixed that.
This commit is contained in:
parent
c697f458e0
commit
eba83f60af
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ parser = {
|
|||
|
||||
|
||||
local entityMap = { ["lt"]="<", ["gt"]=">", ["amp"]="&", ["quot"]='"', ["apos"]="'" }
|
||||
local entitySwap = function(orig,n,s) return entityMap[s] or n=="#" and utf8_enc(tonumber('0'..s)) or orig end
|
||||
local entitySwap = function(orig,n,s) return entityMap[s] or n=="#" and unicode.utf8_enc(tonumber('0'..s)) or orig end
|
||||
local function unescape(str) return gsub( str, '(&(#?)([%d%a]+);)', entitySwap ) end
|
||||
|
||||
local function finishText()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue