[php:core,VD:abstract] fix #3370 broken PHP 5.3 compat

This commit is contained in:
nao-pon
2021-07-07 23:57:12 +09:00
parent 3c93e7487e
commit 8e2fa59c45
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2694,7 +2694,7 @@ class elFinder
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
curl_setopt($ch, CURLOPT_RESOLVE, [$info['host'] . ':' . $info['port'] . ':' . $info['ip']]);
curl_setopt($ch, CURLOPT_RESOLVE, array($info['host'] . ':' . $info['port'] . ':' . $info['ip']));
$result = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($http_code == 301 || $http_code == 302) {