]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: block pubsub subscription requests when CURL is not available
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 1 Apr 2011 13:20:54 +0000 (17:20 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 1 Apr 2011 13:20:54 +0000 (17:20 +0400)
functions.php

index 46502cd1a5248654881a826cbd4d2a4720136246..026ea5750144f79e08738f1818c2b75e754b2d9b 100644 (file)
                                        }
                                }
 
-                               if ($feed_hub_url) {
+                               if ($feed_hub_url && function_exists('curl_init')) {
                                        $callback_url = get_self_url_prefix() .
                                                "/backend.php?op=pubsub&id=$feed";