mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 12:25:56 +00:00
article/redirect: use orm (cast id to int)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user