From 7fc303e6ab5c362a755a57d446c3d6b43e43b86d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 1 Dec 2017 21:07:55 +0300 Subject: [PATCH] query feed headlines: fix limit/offset --- classes/feeds.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index 25a1d2e1..a9f479a5 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -1869,7 +1869,7 @@ class Feeds extends Handler_Protected { } if ($limit > 0) { - $limit_query_part = "LIMIT " . $pdo->quote($limit); + $limit_query_part = "LIMIT " . (int)$limit; } $allow_archived = false; @@ -2027,7 +2027,7 @@ class Feeds extends Handler_Protected { $content_query_part = "content, "; if ($limit_query_part) { - $offset_query_part = "OFFSET " . $pdo->quote($offset); + $offset_query_part = "OFFSET " . (int)$offset; } else { $offset_query_part = ""; } -- 2.39.5