[Scummvm-git-logs] scummvm-web master -> 75b8624ccc62a623fb25e91f7ce1002953b49c2e

Mataniko mataniko at gmail.com
Tue Oct 15 23:59:01 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
75b8624ccc WEB: HTML encode tags in RSS feeds


Commit: 75b8624ccc62a623fb25e91f7ce1002953b49c2e
    https://github.com/scummvm/scummvm-web/commit/75b8624ccc62a623fb25e91f7ce1002953b49c2e
Author: Matan Bareket (mataniko at gmail.com)
Date: 2019-10-15T17:58:52-04:00

Commit Message:
WEB: HTML encode tags in RSS feeds

Changed paths:
    templates/pages/feed_rss.tpl


diff --git a/templates/pages/feed_rss.tpl b/templates/pages/feed_rss.tpl
index be4e329..c2be0fc 100644
--- a/templates/pages/feed_rss.tpl
+++ b/templates/pages/feed_rss.tpl
@@ -9,8 +9,8 @@
 		{foreach from=$news item=n}
 		{assign var='news_filename' value=$n->getFilename()|substr:'0':'-4'}
 		<item>
-			<title>{$n->getTitle()}</title>
-			<description><![CDATA[{$n->getContent()}]]></description>
+			<title>{htmlspecialchars($n->getTitle())}</title>
+			<description>{htmlspecialchars($n->getContent())}></description>
 			<pubDate>{$n->getDate()|date_f:'r'}</pubDate>
 			{if $n->getAuthor() != ''}
 			<author>nospam at scummvm.org ({$n->getAuthor()})</author>





More information about the Scummvm-git-logs mailing list