summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-07-05 12:05:51 +0400
committerAndrew Dolgov <[email protected]>2011-07-05 12:05:51 +0400
commit3610b48ba39d7e84d4f9d098a80e7f5459112310 (patch)
tree8f3924b2a76bb1539bb0113fa90ab8c179046e38 /functions.php
parent19929bbeeca6598827855cffdf21a810da4b7c87 (diff)
remove sanity check on open_basedir, block using CURL instead while running under it
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php5
1 files changed, 3 insertions, 2 deletions
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";