From: Andrew Dolgov Date: Fri, 1 Dec 2017 18:07:55 +0000 (+0300) Subject: query feed headlines: fix limit/offset X-Git-Tag: 17.12~73 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7fc303e6ab5c362a755a57d446c3d6b43e43b86d;p=tt-rss.git query feed headlines: fix limit/offset --- 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 = ""; }