]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix ttrss_feeds.icon_url handling
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Nov 2010 08:52:44 +0000 (11:52 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Nov 2010 08:52:44 +0000 (11:52 +0300)
functions.php

index a9a7cea515787d1b41741911874624e4ed092314..0eb1987bb12519c6cdc9c6e104053c0f17daa962 100644 (file)
 //                     print "I: " . $rss->channel["image"]["url"];
 
                        if (!$use_simplepie) {
-                               $icon_url = $rss->image["url"];
+                               $icon_url = db_escape_string($rss->image["url"]);
                        } else {
-                               $icon_url = $rss->get_image_url();
+                               $icon_url = db_escape_string($rss->get_image_url());
                        }
 
-                       if ($icon_url && !$orig_icon_url != db_escape_string($icon_url)) {
-                               $icon_url = db_escape_string($icon_url);
+                       if ($icon_url && $orig_icon_url != $icon_url) { 
                                db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'");
                        }