From 708a8ea24afa4ae538fd95e57b1370e2dfa4a7ec Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 9 Sep 2019 08:16:26 +0200 Subject: [PATCH] Security : direct access to GLOBALS --- include/supplier.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/supplier.inc.php b/include/supplier.inc.php index 259ca12e3..5c2931228 100644 --- a/include/supplier.inc.php +++ b/include/supplier.inc.php @@ -69,6 +69,7 @@ if ( isset($_POST['action_fiche'] ) ) //----------------------------------------------------- if ( $low_action == "list" ) { + $search=$http->get("query","string",""); ?>
@@ -77,8 +78,7 @@ if ( $low_action == "list" ) ' . "Exercice " . $g_user->get_exercice() . ''; echo dossier::hidden(); - $a=(isset($_GET['query']))?$_GET['query']:""; - echo _("Cherche ").HtmlInput::filter_table_form("tiers_tb", '0,1,2', 1,"query",$a); + echo _("Cherche ").HtmlInput::filter_table_form("tiers_tb", '0,1,2', 1,"query",$search); $choice_cat=$http->request("choice_cat", "string",1); if ( $choice_cat == 1 ) @@ -107,7 +107,6 @@ if ( $low_action == "list" )
get("query","string",""); $sql=""; if (isset($_GET['cat'])) {