diff options
author | Andrew Dolgov <[email protected]> | 2021-02-13 10:10:44 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-13 10:10:44 +0300 |
commit | eec5871f5f0de01e7a4bf5ba69c81315a8ea88e3 (patch) | |
tree | 928772498847fd9d87357a13f8c36e669f8b30ae /classes/rpc.php | |
parent | d3940b625962048b6a7f951ba76f872ce2c1f6d2 (diff) |
fail better if requested article URL is blank
Diffstat (limited to 'classes/rpc.php')
-rwxr-xr-x | classes/rpc.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index f8af1d660..f6b57775d 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -382,23 +382,6 @@ class RPC extends Handler_Protected { $sth->execute(array_merge($ids, [$_SESSION['uid']])); } - function getlinktitlebyid() { - $id = clean($_REQUEST['id']); - - $sth = $this->pdo->prepare("SELECT link, title FROM ttrss_entries, ttrss_user_entries - WHERE ref_id = ? AND ref_id = id AND owner_uid = ?"); - $sth->execute([$id, $_SESSION['uid']]); - - if ($row = $sth->fetch()) { - $link = $row['link']; - $title = $row['title']; - - echo json_encode(array("link" => $link, "title" => $title)); - } else { - echo json_encode(array("error" => "ARTICLE_NOT_FOUND")); - } - } - function log() { $msg = clean($_REQUEST['msg']); $file = basename(clean($_REQUEST['file'])); |