1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 16:05:56 +00:00

allow NO_CURL to disable several CURL-related checks in plugins

af_readability: skip http content-type checking when open_basedir is enabled
This commit is contained in:
Andrew Dolgov
2015-11-20 13:34:52 +03:00
parent 4c46702672
commit aa03bac424
5 changed files with 12 additions and 5 deletions

View File

@@ -325,6 +325,10 @@
array_push($notices, "It is highly recommended to enable support for CURL in PHP.");
}
if (function_exists("curl_init") && ini_get("open_basedir")) {
array_push($notices, "CURL and open_basedir combination breaks support for HTTP redirects. See the FAQ for more information.");
}
if (count($notices) > 0) {
print_notice("Configuration check succeeded with minor problems:");