From 8d3156554302768a54c0b91da59e50ae330bcc6e Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 15 Aug 2022 14:05:20 +0200 Subject: Use old syntax --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index d718201..7122161 100644 --- a/it_url.class +++ b/it_url.class @@ -265,7 +265,7 @@ static function curl_opts($p=array()) CURLOPT_CUSTOMREQUEST => $p['method'] ?: null, CURLOPT_NOBODY => $p['method'] == 'HEAD', CURLOPT_SAFE_UPLOAD => true, # disable special meaning of @value in POST forms (security) - CURLOPT_PROTOCOLS => array_reduce($p['protocols'], fn($c, $v) => $c | $protocols[$v], 0), + CURLOPT_PROTOCOLS => array_reduce($p['protocols'], function($c, $v) use($protocols) { return $c | $protocols[$v]; }, 0), CURLOPT_CAPATH => '/etc/ssl/certs/', CURLOPT_SSL_VERIFYPEER => !$p['allow_insecure_ssl'], -- cgit v1.2.3