Use $_REQUEST instead of $_POST or $_GET

This commit is contained in:
FusionPBX 2023-01-14 15:12:24 -07:00 committed by GitHub
parent 0873d67552
commit c29c00dac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -44,10 +44,13 @@
$text = $language->get();
//get the http post data
if (is_array($_POST['fax_queue'])) {
$action = $_POST['action'];
$search = $_POST['search'];
$fax_queue = $_POST['fax_queue'];
if (isset($_REQUEST['action'])) {
$action = $_REQUEST['action'];
}
//add the search
if (isset($_REQUEST["search"])) {
$search = strtolower($_REQUEST["search"]);
}
//process the http post data by action
@ -91,10 +94,7 @@
$order_by = $_GET["order_by"];
$order = $_GET["order"];
//add the search
if (isset($_GET["search"])) {
$search = strtolower($_GET["search"]);
}
//get the count
$sql = "select count(fax_queue_uuid) ";