}else{
$string = OC_Calendar_Object::find($id);
}
- $string = sha1($string);
+ $string = sha1($string['calendardata']);
$id = sha1($id);
$array = array($uniqid,$string,$id);
shuffle($array);
$event = $result_event->fetchRow();
$return ['id'] = $event['eventid'];
}
+ return $return;
}
}
\ No newline at end of file
header('Content-Type: text/Calendar');
header('Content-Disposition: inline; filename=' . $data['summary'] . '.ics');
echo $data['calendardata'];
+}else{
+ header('Error 404: Not Found');
}
\ No newline at end of file