noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 06/54: mantis #1690: Bug : impossible d'utili


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 06/54: mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit Replace strip_tags , add a space before the "<"
Date: Sat, 11 Jul 2020 13:26:45 -0400 (EDT)

sparkyx pushed a commit to annotated tag entreprise-0500
in repository noalyss.

commit c5a25dd3339eff359f21ac6affd05f1ce19cf5a9
Author: Dany De Bontridder <dany@alchimerys.be>
AuthorDate: Wed Feb 13 22:44:20 2019 +0100

    mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit
    Replace strip_tags , add a space before the "<"
---
 include/lib/http_input.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php
index 5a5be5f..77b3e12 100644
--- a/include/lib/http_input.class.php
+++ b/include/lib/http_input.class.php
@@ -110,7 +110,7 @@ class HttpInput
                 if (array_key_exists($p_name,$this->array) )
                 {
                     $this->check_type($p_name, $p_type);
-                   if ( is_string($this->array[$p_name]) ) return 
strip_tags($this->array[$p_name]);
+                   if ( is_string($this->array[$p_name]) ) return 
preg_replace("/</","< ", $this->array[$p_name]);
                    return $this->array[$p_name];
                 }
                 else
@@ -124,7 +124,7 @@ class HttpInput
                 EXC_PARAM_VALUE);
             }
             $this->check_type($p_name, $p_type);
-           if ( is_string($this->array[$p_name]) ) return 
strip_tags($this->array[$p_name]);
+           if ( is_string($this->array[$p_name]) ) return  
preg_replace("/</","< ", $this->array[$p_name]);
            return $this->array[$p_name];
         }
         catch (Exception $e)



reply via email to

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