From 88b034ea6c2a6647db56fb8ec23d0ba928bcbfba Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Sat, 21 Nov 2015 18:16:44 -0800 Subject: [PATCH] Use a sensible filename for image downloads. --- app/Http/Controllers/ImagesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ImagesController.php b/app/Http/Controllers/ImagesController.php index 045303e0..384e0b52 100644 --- a/app/Http/Controllers/ImagesController.php +++ b/app/Http/Controllers/ImagesController.php @@ -57,7 +57,7 @@ class ImagesController extends Controller $response->header('X-Accel-Redirect', $filename); } - $response->header('Content-Disposition', 'filename="' . $filename . '"'); + $response->header('Content-Disposition', "filename=\"ponyfm-i${id}-${type}.png\""); $response->header('Content-Type', 'image/png'); $lastModified = filemtime($filename);