Update fax_edit.php

This commit is contained in:
FusionPBX 2019-09-19 08:08:17 -06:00 committed by GitHub
parent 8bf320d768
commit 6248ddb3a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
$text = $language->get(); $text = $language->get();
//get the fax_extension and save it as a variable //get the fax_extension and save it as a variable
if (strlen($_REQUEST["fax_extension"]) > 0) { if (isset($_REQUEST["fax_extension"])) {
$fax_extension = $_REQUEST["fax_extension"]; $fax_extension = $_REQUEST["fax_extension"];
} }
@ -138,7 +138,7 @@
} }
//delete the user from the fax users //delete the user from the fax users
if ($_GET["a"] == "delete" && permission_exists("fax_extension_delete")) { if (is_uuid($_REQUEST["user_uuid"]) && is_uuid($_REQUEST["id"]) && $_GET["a"] == "delete" && permission_exists("fax_extension_delete")) {
//set the variables //set the variables
$user_uuid = $_REQUEST["user_uuid"]; $user_uuid = $_REQUEST["user_uuid"];
$fax_uuid = $_REQUEST["id"]; $fax_uuid = $_REQUEST["id"];
@ -197,7 +197,7 @@
clearstatcache(); clearstatcache();
//process the data //process the data
if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if (count($_POST) > 0 && is_uuid($_POST["fax_uuid"]) && strlen($_POST["persistformvar"]) == 0) {
$msg = ''; $msg = '';
if ($action == "update" && permission_exists('fax_extension_edit')) { if ($action == "update" && permission_exists('fax_extension_edit')) {