From 69aa61cadec9f1d65061c4ba6859d4f18cd772ac Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Tue, 20 May 2014 12:31:48 +0200 Subject: [PATCH] Fixed photo download --- php/modules/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/modules/Photo.php b/php/modules/Photo.php index d274106..1460274 100755 --- a/php/modules/Photo.php +++ b/php/modules/Photo.php @@ -528,7 +528,7 @@ class Photo extends Module { # Set headers header("Content-Type: application/octet-stream"); - header("Content-Disposition: attachment; filename=\"$photo->title.$extension[0]\""); + header("Content-Disposition: attachment; filename=\"" . $photo->title . $extension . "\""); header("Content-Length: " . filesize(LYCHEE_UPLOADS_BIG . $photo->url)); # Send file