1
0
Преглед на файлове

[HtmlFormat] Fix format query replacements

logmanoriginal преди 7 години
родител
ревизия
9173e7da54
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      formats/HtmlFormat.php

+ 2 - 2
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=HtmlFormat', 'format=AtomFormat', htmlentities($_SERVER['QUERY_STRING']));
-        $mrssquery = str_replace('format=HtmlFormat', 'format=MrssFormat', htmlentities($_SERVER['QUERY_STRING']));
+        $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')));
 
         $entries = '';
         foreach($this->getDatas() as $data){