Use a sensible filename for image downloads.

This commit is contained in:
Peter Deltchev 2015-11-21 18:16:44 -08:00
parent 8d7f36c375
commit 88b034ea6c

View file

@ -57,7 +57,7 @@ class ImagesController extends Controller
$response->header('X-Accel-Redirect', $filename); $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'); $response->header('Content-Type', 'image/png');
$lastModified = filemtime($filename); $lastModified = filemtime($filename);