1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 22:00:23 +02:00

[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

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