webkitpdf.php
authorAlan Knowles <alan@roojs.com>
Mon, 23 Nov 2015 08:02:39 +0000 (16:02 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Nov 2015 08:02:39 +0000 (16:02 +0800)
webkitpdf.php

index a62dd69..f643f01 100644 (file)
@@ -72,7 +72,7 @@ class WebkitPdf
         header("Last-Modified: " . gmdate("D, d M Y H:i:s",  $ts) . " GMT");
 
         header('Content-length: '. filesize($out));
-        header('Content-Disposition: '.$type.'; filename="' . htmlspecialchars($filename).  '"');
+        header('Content-Disposition: attachment; filename="' . htmlspecialchars($out).  '"');
         ini_set('display_errors', 0);
         
         $fh = fopen($out, 'rb');