mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update hangup_rx.lua
Prevent an error if the value of x is nil.
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
|
||||
--escape shell arguments to prevent command injection
|
||||
local function shell_esc(x)
|
||||
if (x == nil) then return '' end
|
||||
return (x:gsub('\\', '\\\\')
|
||||
:gsub('\'', '\\\''))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user