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