diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-07-18 20:21:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-07-18 20:21:16 +0000 |
commit | 8f74184a58c1b3236a5554e4464b7e1f3d8ba264 (patch) | |
tree | 9fc41054082f9d196863d077697ecbb8f3f9b5e8 | |
parent | a2fcf24980eab4e9f4d75a94695f7e4ca9fa2d29 (diff) | |
download | brdo-8f74184a58c1b3236a5554e4464b7e1f3d8ba264.tar.gz brdo-8f74184a58c1b3236a5554e4464b7e1f3d8ba264.tar.bz2 |
- Fixed '" should be &' problem in feeds.
-rw-r--r-- | includes/common.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/common.inc b/includes/common.inc index 953e2ebeb..19a79c375 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -92,10 +92,10 @@ function format_info($body, $block) { function format_rss_channel($title, $link, $description, $items, $language = "en") { $output .= "<channel>\n"; - $output .= " <title>". strip_tags($title) ."</title>\n"; - $output .= " <link>". strip_tags($link) ."</link>\n"; + $output .= " <title>". htmlentities(strip_tags($title)) ."</title>\n"; + $output .= " <link>". htmlentities(strip_tags($link)) ."</link>\n"; $output .= " <description>". htmlentities($description) ."</description>\n"; - $output .= " <language>$language</language>\n"; + $output .= " <language>". htmlentities(strip_tags($language)) ."</language>\n"; $output .= $items; $output .= "</channel>\n"; @@ -104,8 +104,8 @@ function format_rss_channel($title, $link, $description, $items, $language = "en function format_rss_item($title, $link, $description) { $output .= "<item>\n"; - $output .= " <title>". strip_tags($title) ."</title>\n"; - $output .= " <link>". strip_tags($link) ."</link>\n"; + $output .= " <title>". htmlentities(strip_tags($title)) ."</title>\n"; + $output .= " <link>". htmlentities(strip_tags($link)) ."</link>\n"; $output .= " <description>". htmlentities($description) ."</description>\n"; $output .= "</item>\n"; |