From eba83f60afc62351223771d29d6c53347e008c31 Mon Sep 17 00:00:00 2001 From: gyani Date: Sat, 20 Jun 2015 06:40:13 +0000 Subject: [PATCH] The utf8_enc function had a missing referrence to the unicode library. Fixed that. --- nselib/slaxml.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/slaxml.lua b/nselib/slaxml.lua index a1afbf84f..6847cc270 100644 --- a/nselib/slaxml.lua +++ b/nselib/slaxml.lua @@ -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()