mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 11:13:50 +00:00
This fixes a problem where non-existent domains could cause the lua script to fail which would then leave the database connection open and eventually lead to denial of service when the database runs out of connections. Everyone using xml handler needs this update.
This commit is contained in:
@@ -85,6 +85,11 @@
|
||||
continue = false;
|
||||
end
|
||||
|
||||
--prevent processing for invalid domains
|
||||
if (domain_uuid == nil) then
|
||||
continue = false;
|
||||
end
|
||||
|
||||
--get the extension from the database
|
||||
if (continue) then
|
||||
sql = "SELECT * FROM v_extensions WHERE domain_uuid = '" .. domain_uuid .. "' and extension = '" .. user .. "' and enabled = 'true' ";
|
||||
|
||||
Reference in New Issue
Block a user