[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.
This commit is contained in:
Joseph 2021-03-08 07:17:12 +00:00 committed by GitHub
parent 2ce1a6365b
commit b25674b3a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();