mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
parent
2639ba1b3f
commit
a1a5d53c8e
8 changed files with 38 additions and 40 deletions
|
|
@ -1979,13 +1979,13 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function unescapeHTML (s)
|
||||
function unescapeHTML(s)
|
||||
local unesc = function (h)
|
||||
local res = string.char(tonumber(h, 16))
|
||||
return res
|
||||
end
|
||||
|
||||
s = string.gsub(s, "+", " ")
|
||||
-- s = string.gsub(s, "+", " ")
|
||||
s = string.gsub(s, "%%(%x%x)", unesc)
|
||||
|
||||
return s
|
||||
|
|
@ -2158,7 +2158,8 @@ function hasKey(key, theTable)
|
|||
end
|
||||
end
|
||||
function getPasswordInputPattern()
|
||||
return [[^[\w\$\\!\/\(\)=\?\^\*@_\-\u0000-\u0019\u0021-\u00ff]{5,}$]]
|
||||
-- maximum len must be kept in sync with MAX_PASSWORD_LEN
|
||||
return [[^[\w\$\\!\/\(\)=\?\^\*@_\-\u0000-\u0019\u0021-\u00ff]{5,31}$]]
|
||||
end
|
||||
|
||||
function getIPv4Pattern()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue