aboutsummaryrefslogtreecommitdiff
path: root/views/rss
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-08 09:53:21 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-08 09:53:21 +0000
commit31869a42ea4748bfc0ec5c74ca5ac8d2bd24955e (patch)
tree311ba16dfae4318d2fde443ae6412192aa48a3a0 /views/rss
parent67b7b3d4f6e1efbe8c4d2cff022b0f9e2f15c96b (diff)
downloadelgg-31869a42ea4748bfc0ec5c74ca5ac8d2bd24955e.tar.gz
elgg-31869a42ea4748bfc0ec5c74ca5ac8d2bd24955e.tar.bz2
Fixes #413: Rss feeds with GET query strings now functioning.
Thanks for your patch, nice spot! git-svn-id: https://code.elgg.org/elgg/trunk@2219 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/rss')
-rw-r--r--views/rss/pageshells/pageshell.php88
1 files changed, 44 insertions, 44 deletions
diff --git a/views/rss/pageshells/pageshell.php b/views/rss/pageshells/pageshell.php
index 1cca2f9ce..6a4bea309 100644
--- a/views/rss/pageshells/pageshell.php
+++ b/views/rss/pageshells/pageshell.php
@@ -1,45 +1,45 @@
-<?php
-
- /**
- * Elgg RSS output pageshell
- *
- * @package Elgg
- * @subpackage Core
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @copyright Curverider Ltd 2008
- * @link http://elgg.org/
- *
- */
-
- header("Content-Type: text/xml");
-
- echo "<?xml version='1.0'?>\n";
-
-
-
- // Set title
- if (empty($vars['title'])) {
- $title = $vars['config']->sitename;
- } else if (empty($vars['config']->sitename)) {
- $title = $vars['title'];
- } else {
- $title = $vars['config']->sitename . ": " . $vars['title'];
- }
-
- // Remove RSS from URL
- $url = str_replace('?view=rss','',full_url());
- $url = str_replace('&view=rss','',full_url());
-
-?>
-
-<rss version='2.0' xmlns:dc='http://purl.org/dc/elements/1.1/'>
- <channel xml:base=''>
- <title><![CDATA[<?php echo $title; ?>]]></title>
- <link><?php echo $url; ?></link>
- <?php
-
- echo $vars['body'];
-
- ?>
- </channel>
+<?php
+
+ /**
+ * Elgg RSS output pageshell
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ */
+
+ header("Content-Type: text/xml");
+
+ echo "<?xml version='1.0'?>\n";
+
+
+
+ // Set title
+ if (empty($vars['title'])) {
+ $title = $vars['config']->sitename;
+ } else if (empty($vars['config']->sitename)) {
+ $title = $vars['title'];
+ } else {
+ $title = $vars['config']->sitename . ": " . $vars['title'];
+ }
+
+ // Remove RSS from URL
+ $url = str_replace('?view=rss','',full_url());
+ $url = str_replace('&view=rss','',full_url());
+
+?>
+
+<rss version='2.0' xmlns:dc='http://purl.org/dc/elements/1.1/'>
+ <channel xml:base=''>
+ <title><![CDATA[<?php echo $title; ?>]]></title>
+ <link><?php echo htmlentities($url); ?></link>
+ <?php
+
+ echo $vars['body'];
+
+ ?>
+ </channel>
</rss> \ No newline at end of file