1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-27 15:21:28 +00:00

getArticleLink: add escaping; open_article_in_new_window: add error notifications (closes #202)

This commit is contained in:
Andrew Dolgov
2008-04-18 06:13:00 +01:00
parent ae56f76274
commit 06925d9e85
2 changed files with 10 additions and 1 deletions

View File

@@ -279,7 +279,7 @@
WHERE id = '$id' AND id = ref_id AND owner_uid = '".$_SESSION['uid']."'");
if (db_num_rows($result) == 1) {
$link = strip_tags(db_fetch_result($result, 0, "link"));
$link = htmlspecialchars(strip_tags(db_fetch_result($result, 0, "link")));
print "<rpc-reply><link>$link</link><id>$id</id></rpc-reply>";
} else {
print "<rpc-reply><error>Article not found</error></rpc-reply>";