summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-11 16:21:53 +0300
committerAndrew Dolgov <[email protected]>2010-11-11 16:21:53 +0300
commit85469e1baa26347e12f7456fc729a1bc32c21066 (patch)
treede8e894a49b2c974292e5ca073db1e57f629c58a /functions.php
parentd90c741e6faf4831262c1a43a41eb9fa7a46fdfd (diff)
try to validate feed-specific icon before adding it to the database
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 8f60254b3..2102836f8 100644
--- a/functions.php
+++ b/functions.php
@@ -728,7 +728,9 @@
}
if ($icon_url && $orig_icon_url != $icon_url) {
- db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'");
+ if (USE_CURL_FOR_ICONS || url_validate($icon_url)) {
+ db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'");
+ }
}
if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) {