diff options
Diffstat (limited to 'modules/aggregator/aggregator.module')
-rw-r--r-- | modules/aggregator/aggregator.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index a07c98a25..d7916491c 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -706,13 +706,13 @@ function import_page_fd() { $result = db_query("SELECT * FROM feed ORDER BY title"); - $output .= "<?xml version=\"1.0\"?>\n\n"; + $output .= "<?xml version=\"1.0\" encoding=\"". variable_get("site_charset", "iso-8859-1") ."\"?>\n\n"; $output .= "<rssfeeds version=\"0.1\">\n\n"; while ($feed = db_fetch_object($result)) { $output .= "<channel>\n"; - $output .= " <title>". htmlspecialchars($feed->title) ."</title>\n"; - $output .= " <link>". htmlspecialchars($feed->url) ."</link>\n"; + $output .= " <title>". drupal_specialchars($feed->title) ."</title>\n"; + $output .= " <link>". drupal_specialchars($feed->url) ."</link>\n"; $output .= "</channel>\n\n"; } |