aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-22 18:30:13 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-22 18:30:13 +0000
commit4bb8ac11b86112928d013e8fae12e7542a732626 (patch)
tree21a189228c94a76a9ece11888b72895e3f9f607d /functions
parent32bb2d7d5448554286200cf5d066af0e57221ad1 (diff)
downloadphpicalendar-4bb8ac11b86112928d013e8fae12e7542a732626.tar.gz
phpicalendar-4bb8ac11b86112928d013e8fae12e7542a732626.tar.bz2
phpicalendar-4bb8ac11b86112928d013e8fae12e7542a732626.zip
Fixed bugs in description java pop-up, also set rtrim to ereg_replace for testing.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 13fef3e..6d0f424 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -69,11 +69,11 @@ if ($parse_file) {
while (!feof($ifile)) {
$line = $nextline;
$nextline = fgets($ifile, 1024);
- $nextline = @rtrim($nextline, "\r\n");
+ $nextline = ereg_replace("\r\n", "", $nextline);
while (substr($nextline, 0, 1) == " ") {
$line = $line . substr($nextline, 1);
$nextline = fgets($ifile, 1024);
- $nextline = @rtrim($nextline, "\r\n");
+ $nextline = ereg_replace("\r\n", "", $nextline);
}
$line = trim($line);
if (stristr($line, 'BEGIN:VEVENT')) {

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