aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2010-04-13 20:13:51 +0000
committerJason Oster <parasytic@users.sourceforge.net>2010-04-13 20:13:51 +0000
commitc1c6750179127db558ad5c26689f38ea829d885e (patch)
tree6966cca06eee5c8f3d4681329bf1d6c1e96cbf96 /functions
parent5aa9f5230c240a952cdc6eb685b65df36fe7abfd (diff)
downloadphpicalendar-c1c6750179127db558ad5c26689f38ea829d885e.tar.gz
phpicalendar-c1c6750179127db558ad5c26689f38ea829d885e.tar.bz2
phpicalendar-c1c6750179127db558ad5c26689f38ea829d885e.zip
Fix missing urlencode() when parsing Location attributes
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 3b04ffa..74a281a 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -459,10 +459,9 @@ foreach ($cal_filelist as $cal_key=>$filename) {
$organizer[] = array ('name' => stripslashes($name), 'email' => stripslashes($email));
break;
case 'LOCATION':
- $data = str_replace("\\n", "<br />", $data);
- $data = str_replace("\\t", "&nbsp;", $data);
- $data = str_replace("\\r", "<br />", $data);
+ $data = str_replace('$', '&#36;', $data);
$data = stripslashes($data);
+ $data = htmlentities(urlencode($data));
$location = $data;
break;
case 'URL':

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