[Scummvm-git-logs] scummvm-web master -> 2397c4987ac0d5321e86daab90997ce1b0db958b

Mataniko mataniko at gmail.com
Tue Oct 15 17:16:07 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:
2397c4987a WEB: HTML encode tags in ATOM feeds


Commit: 2397c4987ac0d5321e86daab90997ce1b0db958b
    https://github.com/scummvm/scummvm-web/commit/2397c4987ac0d5321e86daab90997ce1b0db958b
Author: Matan Bareket (mataniko at gmail.com)
Date: 2019-10-15T11:16:00-04:00

Commit Message:
WEB: HTML encode tags in ATOM feeds

Changed paths:
    templates/pages/feed_atom.tpl


diff --git a/templates/pages/feed_atom.tpl b/templates/pages/feed_atom.tpl
index 1445b64..9e48d72 100644
--- a/templates/pages/feed_atom.tpl
+++ b/templates/pages/feed_atom.tpl
@@ -25,8 +25,8 @@
 			<link rel="alternate" href="{$link}" />
 			<updated>{$updated|date_f:'Y-m-d\TH:i:s\Z'}</updated>
 			<published>{$updated|date_f:'Y-m-d\TH:i:s\Z'}</published>
-			<title type="html">{$n->getTitle()}</title>
-			<content type="html" xml:base="http://www.scummvm.org"><![CDATA[{$n->getContent()}]]></content>
+			<title type="html">{htmlspecialchars($n->getTitle())}</title>
+			<content type="html" xml:base="http://www.scummvm.org">{htmlspecialchars($n->getContent())}</content>
 			{if $n->getAuthor() != ''}
 			<author><name>{$n->getAuthor()}</name></author>
 			{/if}





More information about the Scummvm-git-logs mailing list