From 240b0116f7136da677a6e93d1dc6f1e97a899d74 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 4 Sep 2025 09:25:46 +0200 Subject: [PATCH] Http Input : remove harming tag from raw --- include/lib/http_input.class.php | 23 ++++++-- unit-test/include/lib/http_inputTest.php | 74 ++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 5 deletions(-) create mode 100644 unit-test/include/lib/http_inputTest.php diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php index 2b4c53e70..519580b14 100644 --- a/include/lib/http_input.class.php +++ b/include/lib/http_input.class.php @@ -162,7 +162,14 @@ class HttpInput if (array_key_exists($p_name,$this->array) ) { $this->check_type($p_name, $p_type); - if ($p_type != 'raw' && is_string($this->array[$p_name]) ) return preg_replace("/array[$p_name]); + if ($p_type != 'raw' && is_string($this->array[$p_name]) ) { + return preg_replace("/array[$p_name]); + }elseif ($p_type == 'raw') { + $a=preg_replace("/