remove calendar file after sending

This commit is contained in:
Filipe Medeiros 2024-09-22 14:38:51 +02:00
parent 8752d3bec7
commit 4acfa008dd
Signed by: filipe
GPG key ID: 9533BD5467CC1E78

View file

@ -22,5 +22,10 @@
header("Content-disposition: attachment;filename=$calendar_filename");
header('Content-Type: text/calendar');
readfile($calendar_filename);
ob_end_flush();
flush();
unlink($calendar_filename);
}
?>