safety check

This commit is contained in:
Alfredo Cardigliano 2025-09-08 10:38:16 +02:00
parent 837dc962b6
commit a5f3fc3d47

View file

@ -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 = ''