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