From b25674b3a0424c8104463e621c93830407b0ad84 Mon Sep 17 00:00:00 2001 From: Joseph Date: Mon, 8 Mar 2021 07:17:12 +0000 Subject: [PATCH] [HtmlFormat] Use str_ireplace() when creating feed format URLs (#2008) Fixes feed format URLs not being created with correct format value if html feed URL uses a lowercase format value. --- formats/HtmlFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/HtmlFormat.php b/formats/HtmlFormat.php index 49d9ca68..ee60418d 100644 --- a/formats/HtmlFormat.php +++ b/formats/HtmlFormat.php @@ -19,7 +19,7 @@ class HtmlFormat extends FormatAbstract { continue; } - $query = str_replace('format=Html', 'format=' . $format, htmlentities($_SERVER['QUERY_STRING'])); + $query = str_ireplace('format=Html', 'format=' . $format, htmlentities($_SERVER['QUERY_STRING'])); $buttons .= $this->buildButton($format, $query) . PHP_EOL; $mime = $formatFac->create($format)->getMimeType();