Update sobored/rss plugin to 1.1.0

This commit is contained in:
Rémi Verschelde
2017-11-22 22:28:26 +00:00
parent a51d58c465
commit 91fd7984ec
2 changed files with 6 additions and 1 deletions

View File

@@ -12,6 +12,10 @@ use SoBoRed\Rss\Models\Settings;
class Plugin extends PluginBase
{
/**
* @var array Plugin dependencies
*/
public $require = ['RainLab.Blog'];
public function pluginDetails()
{
@@ -80,7 +84,7 @@ class Plugin extends PluginBase
$description = Markdown::parse(trim($description));
$fileContents .= "\t\t<item>\n" .
"\t\t\t<title>" . $post->title . "</title>\n" .
"\t\t\t<title>" . htmlspecialchars($post->title, ENT_QUOTES, 'UTF-8') . "</title>\n" .
"\t\t\t<link>" . Settings::get('link') . Settings::get('postPage') . "/" . $post->slug . "</link>\n" .
"\t\t\t<guid>" . Settings::get('link') . Settings::get('postPage') . "/" . $post->slug . "</guid>\n" .
"\t\t\t<pubDate>" . $published->format(DateTime::RFC2822) . "</pubDate>\n" .

View File

@@ -12,3 +12,4 @@
- Changed having to where to help database type compatibility
- Updated the output to parse markdown
1.0.9: Update to work with new RC version of October.
1.1.0: Properly escape post title