[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)
{
- [Noalyss-commit] [noalyss] branch master updated (ecc3b53 -> 9029b48), Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 10/11: #0001594: CA - liste opérations affiche toutes les opérations Filtre : uniquement opérations diverses, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 01/11: Update documentation, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 09/11: Create lib for Tabs, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 04/11: Fix todo_list : if list empty , gets an error in php 7.2, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 03/11: Merge branch 'master' of ssh://ns3git/srv/git/noalyss, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 11/11: Task #1610 - Problème dans le menu «installation» #0001610: Problème dans le menu «installation», Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 05/11: http_input : strip_tags on array thrown an error,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/11: Documentation, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 06/11: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 08/11: Documentation, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 02/11: Merge branch 'master' of ssh://ns3git/srv/git/noalyss, Dany De Bontridder, 2018/07/17