mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
safety check
This commit is contained in:
parent
837dc962b6
commit
a5f3fc3d47
1 changed files with 4 additions and 0 deletions
|
|
@ -109,6 +109,10 @@ function alert_store:_escape(str)
|
|||
return ""
|
||||
end
|
||||
|
||||
if type(str) ~= "string" then
|
||||
str = tostring(str)
|
||||
end
|
||||
|
||||
str = str:gsub("'", "''")
|
||||
if (str == '\\') then
|
||||
str = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue