summaryrefslogtreecommitdiffstats
path: root/apps/calendar
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-03-28 17:06:16 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-03-28 17:06:16 +0200
commit08b4f996d339fd4c7372f93850c8cea294f7ede5 (patch)
treef7ed0d4d9ddc219a48438c5c36bfd46a9ac91eb6 /apps/calendar
parente5c009599d428db392e06e374bb5e68b0eb773c8 (diff)
downloadnextcloud-server-08b4f996d339fd4c7372f93850c8cea294f7ede5.tar.gz
nextcloud-server-08b4f996d339fd4c7372f93850c8cea294f7ede5.zip
add backslash r to the newline var
Diffstat (limited to 'apps/calendar')
-rw-r--r--apps/calendar/ajax/import/import.php2
-rw-r--r--apps/calendar/export.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/ajax/import/import.php b/apps/calendar/ajax/import/import.php
index c0797f6e425..d0bdab4f0d5 100644
--- a/apps/calendar/ajax/import/import.php
+++ b/apps/calendar/ajax/import/import.php
@@ -10,7 +10,7 @@ ob_start();
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn();
OC_Util::checkAppEnabled('calendar');
-$nl = "\n";
+$nl = "\n\r";
$progressfile = OC::$APPSROOT . '/apps/calendar/import_tmp/' . md5(session_id()) . '.txt';
if(is_writable('import_tmp/')){
$progressfopen = fopen($progressfile, 'w');
diff --git a/apps/calendar/export.php b/apps/calendar/export.php
index 9886ad8e8cc..2736eec96c2 100644
--- a/apps/calendar/export.php
+++ b/apps/calendar/export.php
@@ -11,7 +11,7 @@ OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('calendar');
$cal = isset($_GET['calid']) ? $_GET['calid'] : NULL;
$event = isset($_GET['eventid']) ? $_GET['eventid'] : NULL;
-$nl = "\n";
+$nl = "\n\r";
if(isset($cal)){
$calendar = OC_Calendar_App::getCalendar($cal);
$calobjects = OC_Calendar_Object::all($cal);