Browse Source

Fixed photo download

Tobias Reich 10 years ago
parent
commit
69aa61cade
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/modules/Photo.php

+ 1 - 1
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