Properly test if the file requested (cover or book) exists and send a 404 if it doesn't. Should fix #70
This commit is contained in:
parent
f90077154f
commit
f408a71f80
2 changed files with 26 additions and 1 deletions
1
book.php
1
book.php
|
@ -357,6 +357,7 @@ class Book extends Base {
|
|||
else
|
||||
{
|
||||
$data = $this->getDataById ($idData);
|
||||
if (!$data) return NULL;
|
||||
$file = $data->name . "." . strtolower ($data->format);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue