Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Remove .xml extension if passed in the feed name

givanz69a1a409dc8f
diff --git a/app/controller/feed/index.php b/app/controller/feed/index.php
index 1352c31..1f40f43 100755
--- a/app/controller/feed/index.php
+++ b/app/controller/feed/index.php
@@ -31,6 +31,7 @@ class Index extends Base {
if ($rss) {
$rss = Str::sanitizeFilename($rss);
+ $rss = str_replace('.xml', '', $rss);
$xml = "feed/{$rss}.xml";
$theme = $this->view->getTheme();