mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 21:41:28 +00:00
viewfeed: check if feed exists and report error if not
This commit is contained in:
@@ -721,6 +721,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$result = db_query($link,
|
||||||
|
"SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1");
|
||||||
|
|
||||||
|
if (db_num_rows($result) == 0) {
|
||||||
|
print "<div align='center'>
|
||||||
|
Could not display feed: feed not found.</div>";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {
|
if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {
|
||||||
|
|
||||||
$result = db_query($link, "SELECT rtl_content FROM ttrss_feeds
|
$result = db_query($link, "SELECT rtl_content FROM ttrss_feeds
|
||||||
|
|||||||
Reference in New Issue
Block a user