From 9551cb12f5eabbdc23c11304f928d0191661f62d Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Sat, 13 Oct 2018 09:59:33 +0200 Subject: [PATCH] Standardize and update code --- htdocs/admin/dict.php | 2 +- htdocs/contact/list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index aaa4fb03706..0b5b63d35d6 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -592,7 +592,7 @@ if ($id == 10) * Actions */ -if (GETPOST('button_removefilter') || GETPOST('button_removefilter.x') || GETPOST('button_removefilter_x')) +if (GETPOST('button_removefilter', 'alpha') || GETPOST('button_removefilter.x', 'alpha') || GETPOST('button_removefilter_x', 'alpha')) { $search_country_id = ''; $search_code = ''; diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php index cd536118f8e..52a2c4bbe7f 100644 --- a/htdocs/contact/list.php +++ b/htdocs/contact/list.php @@ -202,7 +202,7 @@ if (empty($reshook)) include DOL_DOCUMENT_ROOT.'/core/actions_changeselectedfields.inc.php'; // Did we click on purge search criteria ? - if (GETPOST('button_removefilter_x') || GETPOST('button_removefilter.x') || GETPOST('button_removefilter')) // All tests are required to be compatible with all browsers + if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x', 'alpha') || GETPOST('button_removefilter', 'alpha')) // All tests are required to be compatible with all browsers { $sall=""; $search_id='';