Fix: Ensure string type for urlencode()

This commit is contained in:
MDW 2024-03-08 02:48:14 +01:00
parent 136646c96d
commit 3b439c81a1
No known key found for this signature in database

View File

@ -1227,9 +1227,9 @@ if ($id == 7 && GETPOST('from') == 'accountancy') {
$titlepicto = 'accountancy';
}
$param = '&id='.urlencode($id);
$param = '&id='.urlencode((string) ($id));
if ($search_country_id || GETPOSTISSET('page') || GETPOST('button_removefilter', 'alpha') || GETPOST('button_removefilter.x', 'alpha') || GETPOST('button_removefilter_x', 'alpha')) {
$param .= '&search_country_id='.urlencode($search_country_id ? $search_country_id : -1);
$param .= '&search_country_id='.urlencode((string) ($search_country_id ? $search_country_id : -1));
}
if ($search_code != '') {
$param .= '&search_code='.urlencode($search_code);