diff options
| author | fox <fox@fakecake.org> | 2026-06-15 22:12:27 +0300 |
|---|---|---|
| committer | fox <fox@fakecake.org> | 2026-06-15 22:12:27 +0300 |
| commit | 789758a094d4885432f165c0c8a419adeb55906c (patch) | |
| tree | b5e4229ed2119bcfc0b59cf3f634fd8fa503cf0c /classes/Handler/DownloadHandler.php | |
| parent | 3a87066a7cf645eb8f8ddbc5d031afe753516de9 (diff) | |
| parent | 7d5e7b0f95992650189b73c6160264db6b658bde (diff) | |
| download | the-epube-789758a094d4885432f165c0c8a419adeb55906c.tar.gz the-epube-789758a094d4885432f165c0c8a419adeb55906c.tar.xz | |
Merge branch 'dev' into 'master'
remove dedicated getinfo handler because list may operate on IDs; add some... See merge request git/the-epube!56
Diffstat (limited to 'classes/Handler/DownloadHandler.php')
| -rw-r--r-- | classes/Handler/DownloadHandler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Handler/DownloadHandler.php b/classes/Handler/DownloadHandler.php index 330c04f..da50c90 100644 --- a/classes/Handler/DownloadHandler.php +++ b/classes/Handler/DownloadHandler.php @@ -13,7 +13,7 @@ class DownloadHandler implements RequestHandlerInterface, AuthRequired { public function handle(Request $request): Response { - $bookid = (int) $request->getAttribute('id'); + $bookid = $request->getInt('id'); $caldb = new PDO('sqlite:' . Config::get(Config::CALIBRE_DB)); $sth = $caldb->prepare("SELECT path, name, format FROM data LEFT JOIN books ON (data.book = books.id) WHERE data.id = ?"); $sth->execute([$bookid]); |
