diff --git a/app/conferences/conference_edit.php b/app/conferences/conference_edit.php
index fc5c28c9a7..e3257bc41f 100644
--- a/app/conferences/conference_edit.php
+++ b/app/conferences/conference_edit.php
@@ -137,6 +137,14 @@
$conference_uuid = $_POST["conference_uuid"];
}
+ //validate the token
+ $token = new token;
+ if (!$token->validate($_SERVER['PHP_SELF'])) {
+ message::add($text['message-invalid_token'],'negative');
+ header('Location: conferences.php');
+ exit;
+ }
+
//check for all required data
$msg = '';
//if (strlen($dialplan_uuid) == 0) { $msg .= "Please provide: Dialplan UUID
\n"; }
@@ -297,6 +305,10 @@
//set defaults
if (strlen($conference_enabled) == 0) { $conference_enabled = "true"; }
+//create token
+ $object = new token;
+ $token = $object->create($_SERVER['PHP_SELF']);
+
//show the header
require_once "resources/header.php";
@@ -487,6 +499,7 @@
echo " \n";
echo " \n";
}
+ echo " \n";
echo "
";
echo " \n";
echo " \n";