escape title when auto-updated from channel

This commit is contained in:
Andrew Dolgov 2005-09-29 02:05:34 +01:00
parent a72607c470
commit e1305a97d0
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@
$orig_icon_url = db_fetch_result($result, 0, "icon_url"); $orig_icon_url = db_fetch_result($result, 0, "icon_url");
if (!$registered_title) { 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'"); db_query($link, "UPDATE ttrss_feeds SET title = '$feed_title' WHERE id = '$feed'");
} }