From 14ea453731c65f90cffdd7ba429217bd3374c7c0 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 23 Nov 2018 23:10:50 +0100 Subject: [PATCH] http_input : fix bug with array --- include/lib/http_input.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php index 35922702a..5a5be5f6e 100644 --- a/include/lib/http_input.class.php +++ b/include/lib/http_input.class.php @@ -80,7 +80,9 @@ class HttpInput throw new Exception(_("Type invalide")."[ $p_name ] = {$this->array[$p_name]}" , EXC_PARAM_TYPE); } - $this->array[$p_name]=h($this->array[$p_name]); + if (is_string($this->array )) { + $this->array[$p_name]=h($this->array[$p_name]); + } }else { throw new Exception(_("Unknown type")); }