From b0a4089dc0b03ace71dba6bc7ae1d44cecbf4bf8 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 30 Aug 2014 20:03:38 +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 9a2b0c0..db06cbf 100755 --- a/php/modules/Photo.php +++ b/php/modules/Photo.php @@ -598,7 +598,7 @@ class Photo extends Module { if ($photo->title=='') $photo->title = 'Untitled'; # Escape title - $zipTitle = str_replace($badChars, '', $zipTitle); + $photo->title = str_replace($badChars, '', $photo->title); # Set headers header("Content-Type: application/octet-stream");