mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Update hangup_rx.lua
Prevent 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