aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2009-02-02 04:05:36 +0000
committerJim Hu <jimhu@users.sourceforge.net>2009-02-02 04:05:36 +0000
commit2229d877a8e798d5a30c3f1132e4770b1b43c018 (patch)
tree8f5e07c99625d736d036547e1dce7ea14c35613a
parent13a6b9c6a96a38e43ca6f96bd2b2e620f9a09436 (diff)
downloadphpicalendar-2229d877a8e798d5a30c3f1132e4770b1b43c018.tar.gz
phpicalendar-2229d877a8e798d5a30c3f1132e4770b1b43c018.tar.bz2
phpicalendar-2229d877a8e798d5a30c3f1132e4770b1b43c018.zip
improvements in rss
-rw-r--r--rss/rss.php4
-rwxr-xr-xrss/rss1.0.php2
2 files changed, 2 insertions, 4 deletions
diff --git a/rss/rss.php b/rss/rss.php
index c22f31e..8d36840 100644
--- a/rss/rss.php
+++ b/rss/rss.php
@@ -20,10 +20,8 @@ function rss_top(){
if ($theview !=""){$rss .= ' - '.$theview;}
$rss .= "</title>\n";
- $rss .= '<link>'.htmlspecialchars("$phpiCal_config->default_path").'</link>'."\n";
if (isset($cpath) && $cpath !='') $rss_link.="?cpath=$cpath";
- $rss .= "<link>$rss_link</link>\n";
-
+ $rss .= '<link>'.htmlspecialchars("$phpiCal_config->default_path").'</link>'."\n";
$rss .= '<description>'.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.'</description>'."\n";
$rss .= '<language>'.$rss_language.'</language>'."\n";
$rss .= '<copyright>Copyright '.date("Y").', '.htmlspecialchars ("$default_path").'</copyright>'."\n";
diff --git a/rss/rss1.0.php b/rss/rss1.0.php
index 0a5acb4..8ea1ea6 100755
--- a/rss/rss1.0.php
+++ b/rss/rss1.0.php
@@ -42,7 +42,7 @@ function enclose_items($rss_items){
function rss_item(){
global $uid,$event_start,$rss_title,$rss_link, $dayofweek, $event_text, $rss_description, $val;
- $rss_item = '<item rdf:about="'.$rss_link.'&amp;uid='.$uid.'/">'."\n";
+ $rss_item = '<item rdf:about="'.$rss_link.'&amp;uid='.urlencode($uid).'/">'."\n";
/* Create guid, and use uid to make link unique */
# $rss .= '<guid isPermaLink="false">'.$rss_link.$uid.'</guid>'."\n";

© 2014-2024 Faster IT GmbH | imprint | privacy policy