--- lib/filelib.php.orig0	2007-06-14 17:52:16.000000000 +0900
+++ lib/filelib.php	2007-06-14 17:55:42.000000000 +0900
@@ -290,9 +290,9 @@
     header('Last-Modified: '. gmdate('D, d M Y H:i:s', $lastmodified) .' GMT');
 
     if ($forcedownload) {
-        @header('Content-Disposition: attachment; filename='.$filename);
+        @header('Content-Disposition: attachment; filename="' . $filename . '"');
     } else {
-        @header('Content-Disposition: inline; filename='.$filename);
+        @header('Content-Disposition: inline; filename="' . $filename . '"');
     }
 
     if ($lifetime > 0) {
