about summary refs log tree commit diff stats
path: root/classes/Handler/ListHandler.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-19 13:26:20 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-19 13:26:20 +0300
commitef7d52f85dfe611d536fcb96c3a61db1b8b67481 (patch)
treede050bf0171f4a211c4e8e91196b706c4db10fbf /classes/Handler/ListHandler.php
parent8eb610074f829cdcbbac035340318601fa41af5c (diff)
downloadthe-epube-ef7d52f85dfe611d536fcb96c3a61db1b8b67481.tar.gz
the-epube-ef7d52f85dfe611d536fcb96c3a61db1b8b67481.tar.xz
deal with some potential minor xss issues
Diffstat (limited to 'classes/Handler/ListHandler.php')
-rw-r--r--classes/Handler/ListHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Handler/ListHandler.php b/classes/Handler/ListHandler.php
index e8a5916..6ecec7d 100644
--- a/classes/Handler/ListHandler.php
+++ b/classes/Handler/ListHandler.php
@@ -32,7 +32,7 @@ class ListHandler implements RequestHandlerInterface, AuthRequired
 
             $fav_ids = [];
             while ($line = $fav_sth->fetch()) {
-                array_push($fav_ids, $line["bookid"]);
+                array_push($fav_ids, (int) $line["bookid"]);
             }
 
             if (empty($fav_ids)) {