Commit 7d176b39 authored by Dries's avatar Dries

- Patch #71684 by fgm: corrected the header information of RSS feeds: text/xml...

- Patch #71684 by fgm: corrected the header information of RSS feeds: text/xml -> application/rss+xml
parent c50d7bcb
......@@ -1202,7 +1202,7 @@ function aggregator_page_rss() {
$output .= format_rss_channel(variable_get('site_name', t('Drupal')) . ' ' . t('aggregator'), url('aggregator' . $url, NULL, NULL, TRUE), variable_get('site_name', t('Drupal')) . ' - ' . t('aggregated feeds') . $title, $items, 'en');
$output .= "</rss>\n";
drupal_set_header('Content-Type: text/xml; charset=utf-8');
drupal_set_header('Content-Type: application/rss+xml; charset=utf-8');
print $output;
}
......
......@@ -1202,7 +1202,7 @@ function aggregator_page_rss() {
$output .= format_rss_channel(variable_get('site_name', t('Drupal')) . ' ' . t('aggregator'), url('aggregator' . $url, NULL, NULL, TRUE), variable_get('site_name', t('Drupal')) . ' - ' . t('aggregated feeds') . $title, $items, 'en');
$output .= "</rss>\n";
drupal_set_header('Content-Type: text/xml; charset=utf-8');
drupal_set_header('Content-Type: application/rss+xml; charset=utf-8');
print $output;
}
......
......@@ -1480,7 +1480,7 @@ function node_feed($nodes = 0, $channel = array()) {
$output .= format_rss_channel($channel['title'], $channel['link'], $channel['description'], $items, $channel['language']);
$output .= "</rss>\n";
drupal_set_header('Content-Type: text/xml; charset=utf-8');
drupal_set_header('Content-Type: application/rss+xml; charset=utf-8');
print $output;
}
......
......@@ -1480,7 +1480,7 @@ function node_feed($nodes = 0, $channel = array()) {
$output .= format_rss_channel($channel['title'], $channel['link'], $channel['description'], $items, $channel['language']);
$output .= "</rss>\n";
drupal_set_header('Content-Type: text/xml; charset=utf-8');
drupal_set_header('Content-Type: application/rss+xml; charset=utf-8');
print $output;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment