From f097ae608d087d0021322c4c374089775aae609e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Mar 2021 09:31:57 +0300 Subject: [PATCH] article/redirect: use orm (cast id to int) --- classes/article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/article.php b/classes/article.php index 4b4051d36..9a9e46f21 100755 --- a/classes/article.php +++ b/classes/article.php @@ -9,7 +9,7 @@ class Article extends Handler_Protected { ->table_alias('e') ->join('ttrss_user_entries', [ 'ref_id', '=', 'e.id'], 'ue') ->where('ue.owner_uid', $_SESSION['uid']) - ->find_one($_REQUEST['id']); + ->find_one((int)$_REQUEST['id']); if ($article) { $article_url = UrlHelper::validate($article->link);