mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-17 22:18:28 +00:00
7 lines
144 B
Lua
7 lines
144 B
Lua
|
|
--escape shell arguments to prevent command injection
|
|
local function shell_esc(x)
|
|
return (x:gsub('\\', '\\\\')
|
|
:gsub('\'', '\\\''))
|
|
end
|