]> git.wh0rd.org Git - tt-rss.git/commitdiff
escape title when auto-updated from channel
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 29 Sep 2005 01:05:34 +0000 (02:05 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 29 Sep 2005 01:05:34 +0000 (02:05 +0100)
functions.php

index 378e123f25da94c8913a010d4b4dc3dcab7629d4..962b03e8fffa2588c2289d4abd093c96f0b3ef28 100644 (file)
@@ -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'");
                        }