From 312742db6efc22a844a5f0a9d95f0282722354dc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 13 Jan 2016 18:12:31 +0300 Subject: [PATCH] updates: auto-disable CURL if open_basedir is enabled, notify possible issues w/ plugins --- classes/pref/prefs.php | 4 ++++ include/functions.php | 2 +- include/rssfuncs.php | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index b78aa4d6..1988649a 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -709,6 +709,10 @@ class Pref_Prefs extends Handler_Protected { print_notice(__("Download more plugins at tt-rss.org forums or wiki.")); + if (ini_get("open_basedir") && function_exists("curl_init") && !defined("NO_CURL")) { + print_warning("Your PHP configuration has open_basedir restrictions enabled. Some plugins relying on CURL for functionality may not work correctly."); + } + print "
"; print "