]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - templates/atomitem.tmpl
* Fix bogus use of CDATA in atom feeds. Closes: #406898
[git.ikiwiki.info.git] / templates / atomitem.tmpl
index e0f7bb4f9bddd613f8468934cdb14de195e90f47..9dfcb1b3283bdbccfe1a5f3b4fe577efc6f4fab4 100644 (file)
        </TMPL_LOOP>
        </TMPL_IF>
        <updated><TMPL_VAR DATE_3339></updated>
+       <TMPL_IF NAME="ENCLOSURE">
+       <link rel="enclosure" type="<TMPL_VAR TYPE>" href="<TMPL_VAR ENCLOSURE>" length="<TMPL_VAR LENGTH>" />
+       <TMPL_ELSE>
        <content type="xhtml" xml:lang="en">
         <div xmlns="http://www.w3.org/1999/xhtml">
-        ![CDATA[<TMPL_VAR CONTENT>]]
+        <TMPL_VAR CONTENT>
         </div>
        </content>
+       </TMPL_IF>
 </entry>