mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:35: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:
@@ -17,7 +17,7 @@ class Af_Unburn extends Plugin {
|
||||
function hook_article_filter($article) {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (!function_exists("curl_init") || ini_get("open_basedir"))
|
||||
if (defined('NO_CURL') || !function_exists("curl_init") || ini_get("open_basedir"))
|
||||
return $article;
|
||||
|
||||
if ((strpos($article["link"], "feedproxy.google.com") !== FALSE ||
|
||||
|
||||
Reference in New Issue
Block a user