article/redirect: use orm (cast id to int)

This commit is contained in:
Andrew Dolgov 2021-03-02 09:31:57 +03:00
parent 3bab5ca6b1
commit f097ae608d
1 changed files with 1 additions and 1 deletions

View File

@ -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);