Ticket #899: forum-rss-fix.diff

File forum-rss-fix.diff, 583 bytes (added by Nicolas, 16 years ago)
  • html/user/forum_rss.php

     
    122122    <title>".strip_tags($thread->title)."</title>
    123123    <link>$unique_url</link>
    124124    <guid isPermaLink=\"true\">$unique_url</guid>
    125     <description>".substr(strip_tags($post->content),0,255)." . . .</description>
     125    <description>".htmlspecialchars(htmlspecialchars(substr($post->content,0,255)))." . . .</description>
    126126    <pubDate>$post_date</pubDate>
    127127</item>
    128128";