Fix conference active buttons.
Security validation wasn't quite right so it prevented the mute, unmute and other conference actions from working.
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2020
|
Portions created by the Initial Developer are Copyright (C) 2008-2022
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -80,12 +80,12 @@
|
|||||||
|
|
||||||
//validate the name
|
//validate the name
|
||||||
if (!is_uuid($name)) {
|
if (!is_uuid($name)) {
|
||||||
$sql = "select conference_name ";
|
$sql = "select conference_extension ";
|
||||||
$sql .= "from v_conferences ";
|
$sql .= "from v_conferences ";
|
||||||
$sql .= "where domain_uuid = :domain_uuid ";
|
$sql .= "where domain_uuid = :domain_uuid ";
|
||||||
$sql .= "and conference_name = :conference_name ";
|
$sql .= "and conference_extension = :conference_extension ";
|
||||||
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||||
$parameters['conference_name'] = $name;
|
$parameters['conference_extension'] = $name;
|
||||||
$database = new database;
|
$database = new database;
|
||||||
$name = $database->select($sql, $parameters, 'column');
|
$name = $database->select($sql, $parameters, 'column');
|
||||||
unset ($parameters, $sql);
|
unset ($parameters, $sql);
|
||||||
@@ -178,6 +178,8 @@
|
|||||||
unset($uuid);
|
unset($uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//execute the command
|
//execute the command
|
||||||
if (count($_GET) > 0) {
|
if (count($_GET) > 0) {
|
||||||
if (strlen($cmd) > 0) {
|
if (strlen($cmd) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user