DataObjects/Builder_tables.php
authorEdward <edward@roojs.com>
Fri, 9 May 2014 07:08:48 +0000 (15:08 +0800)
committerEdward <edward@roojs.com>
Fri, 9 May 2014 07:08:48 +0000 (15:08 +0800)
DataObjects/Builder_tables.php

index f1fd38a..19e82d5 100644 (file)
@@ -235,7 +235,7 @@ class Pman_Builder_DataObjects_Builder_tables extends DB_DataObject
         file_put_contents($path, $data);
         
         header ('Content-Type: application/octet-stream');
-        header("Content-Disposition: attachment; filename=\"".$path."\";" );
+        header("Content-Disposition: attachment; filename=\"".basename($path)."\";" );
         header("Expires: 0");
         header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
         header("Pragma: public");