mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix bugs in share class
This commit is contained in:
parent
0f16935763
commit
a7908ba76b
2 changed files with 4 additions and 1 deletions
|
|
@ -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…
Reference in a new issue