diff --git a/bl-plugins/rss/plugin.php b/bl-plugins/rss/plugin.php index 3041b241..f91ebe0a 100644 --- a/bl-plugins/rss/plugin.php +++ b/bl-plugins/rss/plugin.php @@ -33,7 +33,7 @@ class pluginRSS extends Plugin { return $html; } - private function urlRSS($url) + private function encodeURL($url) { return preg_replace_callback('/[^\x20-\x7f]/', function($match) { return urlencode($match[0]); }, $url); } @@ -63,7 +63,7 @@ class pluginRSS extends Plugin { $xml .= ''; $xml .= ''; $xml .= ''.$site->title().''; - $xml .= ''.$this->urlRSS($site->url()).''; + $xml .= ''.$this->encodeURL($site->url()).''; $xml .= ''.$site->description().''; $xml .= ''.date(DATE_RSS).''; @@ -74,7 +74,7 @@ class pluginRSS extends Plugin { $page = new Page($pageKey); $xml .= ''; $xml .= ''.$page->title().''; - $xml .= ''.$this->urlRSS($page->permalink()).''; + $xml .= ''.$this->encodeURL($page->permalink()).''; $xml .= ''.Sanitize::html($page->contentBreak()).''; $xml .= ''.date(DATE_RSS,strtotime($page->getValue('dateRaw'))).''; $xml .= ''.$page->uuid().'';