fix bugs in share class

remotes/origin/stable4
Georg Ehrke 13 years ago
parent 0f16935763
commit a7908ba76b
  1. 3
      apps/calendar/lib/share.php
  2. 2
      apps/calendar/share.php

@ -130,7 +130,7 @@ class OC_Calendar_Share{
}else{
$string = OC_Calendar_Object::find($id);
}
$string = sha1($string);
$string = sha1($string['calendardata']);
$id = sha1($id);
$array = array($uniqid,$string,$id);
shuffle($array);
@ -245,5 +245,6 @@ class OC_Calendar_Share{
$event = $result_event->fetchRow();
$return ['id'] = $event['eventid'];
}
return $return;
}
}

@ -18,4 +18,6 @@ if($shared['type'] == OC_Calendar_Share::CALENDAR){
header('Content-Type: text/Calendar');
header('Content-Disposition: inline; filename=' . $data['summary'] . '.ics');
echo $data['calendardata'];
}else{
header('Error 404: Not Found');
}
Loading…
Cancel
Save