From 7961f8081ec61e6c49df3fabd230e18038d686de Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 23 Aug 2016 19:46:21 +0200 Subject: [PATCH] [HtmlFormat] Revert use of filter_input to $_SERVER https://bugs.php.net/bug.php?id=49184 indicates a verified (not solved) bug where filter_input returns NULL when used with INPUT_SERVER --- formats/HtmlFormat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/formats/HtmlFormat.php b/formats/HtmlFormat.php index f85f1d1..4a9aab0 100644 --- a/formats/HtmlFormat.php +++ b/formats/HtmlFormat.php @@ -6,8 +6,8 @@ class HtmlFormat extends FormatAbstract{ $extraInfos = $this->getExtraInfos(); $title = htmlspecialchars($extraInfos['name']); $uri = htmlspecialchars($extraInfos['uri']); - $atomquery = str_replace('format=Html', 'format=Atom', htmlentities(filter_input(INPUT_SERVER, 'QUERY_STRING'))); - $mrssquery = str_replace('format=Html', 'format=Mrss', htmlentities(filter_input(INPUT_SERVER, 'QUERY_STRING'))); + $atomquery = str_replace('format=Html', 'format=Atom', htmlentities($_SERVER['QUERY_STRING'])); + $mrssquery = str_replace('format=Html', 'format=Mrss', htmlentities($_SERVER['QUERY_STRING'])); $entries = ''; foreach($this->getDatas() as $data){