mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-26 00:53:44 +01:00
issue #49 fixed
This commit is contained in:
parent
3f67446cc2
commit
a5c1fd6182
@ -37,7 +37,8 @@ end
|
||||
-- '#' is used as placeholder for rule numbers and has to be escaped
|
||||
function smartline.escape(s)
|
||||
s = tostring(s)
|
||||
s = s:gsub('"', '\\"') -- to prevent code injection!!!
|
||||
s = s:gsub('\\', '') -- to prevent code injection!!!
|
||||
s = s:gsub('"', '\\"') -- to prevent code injection!!!
|
||||
return s:gsub("#", '"..string.char(35).."')
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user