From 3610b48ba39d7e84d4f9d098a80e7f5459112310 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 5 Jul 2011 12:05:51 +0400 Subject: remove sanity check on open_basedir, block using CURL instead while running under it --- functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 9ef45cd3f..4ce670033 100644 --- a/functions.php +++ b/functions.php @@ -362,7 +362,7 @@ $login = urlencode($login); $pass = urlencode($pass); - if (function_exists('curl_init')) { + if (function_exists('curl_init') && !ini_get("open_basedir")) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15); @@ -816,7 +816,8 @@ if ($debug_enabled) _debug("update_rss_feed: feed hub url: $feed_hub_url"); - if ($feed_hub_url && function_exists('curl_init')) { + if ($feed_hub_url && function_exists('curl_init') && + !ini_get("open_basedir")) { $callback_url = get_self_url_prefix() . "/backend.php?op=pubsub&id=$feed"; -- cgit v1.2.3