This commit is contained in:
An Phan 2016-06-08 18:10:20 +08:00
parent 921df9d5a3
commit efcdac82e3
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2

View file

@ -39,9 +39,7 @@ class Download
protected function fromSong(Song $song)
{
if (!file_exists($song->path)) {
abort(404);
}
abort_unless(file_exists($song->path), 404);
if (ctype_print($song->path)) {
return $song->path;