From e9a9e9bbc23cce44b43787660d320c465f89ca1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 31 Oct 2020 18:55:24 +0100 Subject: [PATCH] Update edit.php --- htdocs/categories/edit.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/categories/edit.php b/htdocs/categories/edit.php index 7764341dfd7..a27295fcd84 100644 --- a/htdocs/categories/edit.php +++ b/htdocs/categories/edit.php @@ -3,6 +3,7 @@ * Copyright (C) 2006-2016 Laurent Destailleur * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2007 Patrick Raguin + * Copyright (C) 2020 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,10 +40,10 @@ $action = (GETPOST('action', 'aZ09') ?GETPOST('action', 'aZ09') : 'edit'); $confirm = GETPOST('confirm'); $cancel = GETPOST('cancel', 'alpha'); -$socid = GETPOST('socid', 'int'); -$label = GETPOST('label', 'alphanohtml'); -$description = GETPOST('description', 'restricthtml'); -$color = preg_replace('/[^0-9a-f#]/i', '', GETPOST('color', 'alphanohtml')); +$socid = (int) GETPOST('socid', 'int'); +$label = (string) GETPOST('label', 'alphanohtml'); +$description = (string) GETPOST('description', 'restricthtml'); +$color = preg_replace('/[^0-9a-f#]/i', '', (string) GETPOST('color', 'alphanohtml')); $visible = (int) GETPOST('visible', 'int'); $parent = (int) GETPOST('parent', 'int');