From 9f43d8613c920c838d274b791219e92a4b2a9ad2 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 9 Oct 2012 16:59:19 +0200 Subject: [PATCH] Fix: missing clean parameters --- htdocs/categories/class/categorie.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index fbc53dbdef7..c7ffdc63753 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -114,6 +114,8 @@ class Categorie $error=0; // Clean parameters + $this->label = trim($this->label); + $this->description = trim($this->description); $this->import_key = trim($this->import_key); if (empty($this->visible)) $this->visible=0; $this->fk_parent = ($this->fk_parent != "" ? intval($this->fk_parent) : 0);