diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2009-02-02 04:05:36 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2009-02-02 04:05:36 +0000 |
commit | 2229d877a8e798d5a30c3f1132e4770b1b43c018 (patch) | |
tree | 8f5e07c99625d736d036547e1dce7ea14c35613a | |
parent | 13a6b9c6a96a38e43ca6f96bd2b2e620f9a09436 (diff) | |
download | phpicalendar-2229d877a8e798d5a30c3f1132e4770b1b43c018.tar.gz phpicalendar-2229d877a8e798d5a30c3f1132e4770b1b43c018.tar.bz2 phpicalendar-2229d877a8e798d5a30c3f1132e4770b1b43c018.zip |
improvements in rss
-rw-r--r-- | rss/rss.php | 4 | ||||
-rwxr-xr-x | rss/rss1.0.php | 2 |
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.'&uid='.$uid.'/">'."\n";
+ $rss_item = '<item rdf:about="'.$rss_link.'&uid='.urlencode($uid).'/">'."\n";
/* Create guid, and use uid to make link unique */
# $rss .= '<guid isPermaLink="false">'.$rss_link.$uid.'</guid>'."\n";
|