1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +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

@@ -18,7 +18,8 @@ class Af_Zz_ImgSetSizes extends Plugin {
function hook_article_filter($article) {
$owner_uid = $article["owner_uid"];
if (defined('NO_CURL') || !function_exists("curl_init"))
return $article;
$charset_hack = '<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>