aboutsummaryrefslogtreecommitdiffstats
path: root/rss
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-08-14 04:17:50 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-08-14 04:17:50 +0000
commita054d4c4f7a5cc6f3cd6aec1fc8a4863f8d13506 (patch)
tree59e214160f500bf22b9e834c107eba3d17373587 /rss
parent77df8c358a260265c70344e412636abde8a91564 (diff)
downloadphpicalendar-a054d4c4f7a5cc6f3cd6aec1fc8a4863f8d13506.tar.gz
phpicalendar-a054d4c4f7a5cc6f3cd6aec1fc8a4863f8d13506.tar.bz2
phpicalendar-a054d4c4f7a5cc6f3cd6aec1fc8a4863f8d13506.zip
fix for Bug 1526693
Diffstat (limited to 'rss')
-rwxr-xr-xrss/rss1.0.php4
-rw-r--r--rss/rss2.0.php4
2 files changed, 6 insertions, 2 deletions
diff --git a/rss/rss1.0.php b/rss/rss1.0.php
index deceab4..366f15d 100755
--- a/rss/rss1.0.php
+++ b/rss/rss1.0.php
@@ -216,7 +216,9 @@ $uid_arr = array();
$rss_items .= '<link>'.$rss_link.'</link>'."\n";
$rss_items .= '<description>'.$rss_description.'</description>'."\n";
if (isset($val['location']) && $val['location'] !=''){
- $rss_items .= '<ev:location>'.$val['location']."</ev:location>\n";
+ $location = str_replace('&','&amp;',$val['location']);
+ $location = str_replace('&amp;amp;','&amp;',$location);
+ $rss_items .= '<ev:location>'.$location."</ev:location>\n";
}
$rss_items .= '</item>'."\n";
$events_count++;
diff --git a/rss/rss2.0.php b/rss/rss2.0.php
index f009555..ae2e782 100644
--- a/rss/rss2.0.php
+++ b/rss/rss2.0.php
@@ -219,7 +219,9 @@ $uid_arr = array();
$rss .= '<link>'.$rss_link.'</link>'."\n";
$rss .= '<description>'.$rss_description.'</description>'."\n";
if (isset($val['location']) && $val['location'] !=''){
- $rss .= '<ev:location>'.$val['location']."</ev:location>\n";
+ $location = str_replace('&','&amp;',$val['location']);
+ $location = str_replace('&amp;amp;','&amp;',$location);
+ $rss .= '<ev:location>'.$location."</ev:location>\n";
}
$rss .= '</item>'."\n";
$events_count++;

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