summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-29 02:05:34 +0100
committerAndrew Dolgov <[email protected]>2005-09-29 02:05:34 +0100
commite1305a97d0d99aaa3def982011cfae73701aa3b1 (patch)
tree64f9e9287e1cd92d10fa780f3df49908dbbbcccd
parenta72607c4701bf97dc82f28617750e9cb808ce91c (diff)
escape title when auto-updated from channel
-rw-r--r--functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 378e123f2..962b03e8f 100644
--- a/functions.php
+++ b/functions.php
@@ -91,7 +91,7 @@
$orig_icon_url = db_fetch_result($result, 0, "icon_url");
if (!$registered_title) {
- $feed_title = $rss->channel["title"];
+ $feed_title = db_escape_string($rss->channel["title"]);
db_query($link, "UPDATE ttrss_feeds SET title = '$feed_title' WHERE id = '$feed'");
}