Merge pull request #4463 from humhub/fix/deprSafeMode

Fix: removed deprecated safe_mode ini check in UrlOembedHttpClient
This commit is contained in:
Lucas Bartholemy 2020-10-10 15:40:12 +02:00 committed by GitHub
commit e4feffdf86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,8 +25,8 @@ class UrlOembedHttpClient implements UrlOembedClient
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 15);
// Not available when open_basedir or safe_mode is set.
if (!function_exists('ini_get') || !ini_get('open_basedir') || !ini_get('safe_mode')) {
// Not available when open_basedir is set.
if (!function_exists('ini_get') || !ini_get('open_basedir')) {
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
}