summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-08-31 11:30:28 +0400
committerAndrew Dolgov <[email protected]>2010-08-31 11:30:28 +0400
commitc5701e70a4950fcaa06e0e775102ccc5caff22f8 (patch)
tree6cc97b6424d9aee312551f626dc05e34111ff8d8 /functions.php
parentcce9822a537c77d86b626e29e60c6f5e81ef6351 (diff)
getFeedArticles: properly escape tags
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 0252c0cfc..05eb85909 100644
--- a/functions.php
+++ b/functions.php
@@ -2611,6 +2611,8 @@
return getCategoryUnread($link, $n_feed, $owner_uid);
} if ($feed != "0" && $n_feed == 0) {
+ $feed = db_escape_string($feed);
+
$result = db_query($link, "SELECT SUM((SELECT COUNT(int_id)
FROM ttrss_user_entries,ttrss_entries WHERE int_id = post_int_id
AND ref_id = id AND $age_qpart