noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 18/19: http_input , trim on array is invalid


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 18/19: http_input , trim on array is invalid
Date: Thu, 12 Dec 2019 15:49:06 -0500 (EST)

sparkyx pushed a commit to tag rel7200
in repository noalyss.

commit 2e4965b20e33b2d2bf856619a053c2c53c39e703
Author: Dany De Bontridder <address@hidden>
Date:   Thu Dec 12 21:48:16 2019 +0100

    http_input , trim on array is invalid
---
 include/lib/http_input.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php
index ac3b1d9..60b03a1 100644
--- a/include/lib/http_input.class.php
+++ b/include/lib/http_input.class.php
@@ -110,7 +110,7 @@ class HttpInput
             }
             else if ($p_type=="array")
             {
-                 if (trim($this->array[$p_name]) == "" )
+                 if ( empty($this->array[$p_name]) )
                 {
                     $this->array[$p_name]=$this->empty;
                 }



reply via email to

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