diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php
index b153960f9c..ea5da9cbe0 100644
--- a/app/call_flows/call_flow_edit.php
+++ b/app/call_flows/call_flow_edit.php
@@ -91,6 +91,14 @@
$call_flow_uuid = $_POST["call_flow_uuid"];
}
+ //validate the token
+ $token = new token;
+ if (!$token->validate($_SERVER['PHP_SELF'])) {
+ message::add($text['message-invalid_token'],'negative');
+ header('Location: call_flows.php');
+ exit;
+ }
+
//check for all required data
$msg = '';
//if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-domain_uuid']."
\n"; }
@@ -458,6 +466,10 @@
echo "\n";
}
+//create token
+ $object = new token;
+ $token = $object->create($_SERVER['PHP_SELF']);
+
//show the header
require_once "resources/header.php";
@@ -673,10 +685,11 @@
echo "