noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 05/11: http_input : strip_tags on array throw


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 05/11: http_input : strip_tags on array thrown an error
Date: Tue, 17 Jul 2018 04:04:27 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 02f851e3b60c0e471f1a125b3de9efda8b9e1dd0
Author: Dany De Bontridder <address@hidden>
Date:   Mon Jun 11 08:57:00 2018 +0200

    http_input : strip_tags on array thrown an error
---
 include/lib/http_input.class.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php
index 5dd1a33..3592270 100644
--- a/include/lib/http_input.class.php
+++ b/include/lib/http_input.class.php
@@ -108,7 +108,8 @@ class HttpInput
                 if (array_key_exists($p_name,$this->array) )
                 {
                     $this->check_type($p_name, $p_type);
-                    return strip_tags($this->array[$p_name]);
+                   if ( is_string($this->array[$p_name]) ) return 
strip_tags($this->array[$p_name]);
+                   return $this->array[$p_name];
                 }
                 else
                 {
@@ -121,7 +122,8 @@ class HttpInput
                 EXC_PARAM_VALUE);
             }
             $this->check_type($p_name, $p_type);
-            return strip_tags($this->array[$p_name]);
+           if ( is_string($this->array[$p_name]) ) return 
strip_tags($this->array[$p_name]);
+           return $this->array[$p_name];
         }
         catch (Exception $e)
         {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]