From dd08c6f8904cb08a1c7944201e2b7ccb55d9484b Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 5 Oct 2011 09:17:54 +0200 Subject: [PATCH] Fix Content-Disposition. --- inc/tz/get.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/tz/get.php b/inc/tz/get.php index a89c22fc..f8847c64 100644 --- a/inc/tz/get.php +++ b/inc/tz/get.php @@ -45,9 +45,8 @@ if ( $qry->QDo('SELECT * FROM tz_localnames WHERE our_tzno = :our_tzno', array(' header( 'ETag: "'.$tz->etag.'"' ); header( 'Last-Modified', $tz->last_modified ); -header( 'Content-Disposition', $tzid . '.ics' ); +header( 'Content-Disposition', 'Attachment; Filename="'.str_replace('/','-',$tzid . '.ics"' ); - -$request->DoResponse(200, $vtz->Render(), 'text/calendar'); +$request->DoResponse(200, $vtz->Render(), 'text/calendar; charset=UTF-8'); exit(0); \ No newline at end of file