diff --git a/admin/documentdownloader.php b/admin/documentdownloader.php index 6272a14..0efec64 100644 --- a/admin/documentdownloader.php +++ b/admin/documentdownloader.php @@ -28,7 +28,7 @@ if($r=mysql_fetch_object($q)) { header("Content-type: ".trim(exec("file -bi ../data/documents/$r->filename"))); - header("Content-disposition: inline; filename=$r->filename"); + header("Content-disposition: inline; filename=\"".$r->filename."\""); header("Content-length: ".filesize("../data/documents/$r->filename")); readfile("../data/documents/$r->filename"); }