Explorar o código

Merge pull request #1962 from Ayesh/php84-curl-depr

[PHP 8.4] Fix: Curl `CURLOPT_BINARYTRANSFER` deprecated
causefx %!s(int64=2) %!d(string=hai) anos
pai
achega
9f38a01928
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      api/functions/normal-functions.php

+ 1 - 2
api/functions/normal-functions.php

@@ -848,7 +848,6 @@ function download($url, $path)
 	$ch = curl_init($url);
 	$ch = curl_init($url);
 	curl_setopt($ch, CURLOPT_HEADER, 1);
 	curl_setopt($ch, CURLOPT_HEADER, 1);
 	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
-	curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
 	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
 	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
 	curl_setopt($ch, CURLOPT_CAINFO, getCert());
 	curl_setopt($ch, CURLOPT_CAINFO, getCert());
 	if (localURL($url)) {
 	if (localURL($url)) {
@@ -915,4 +914,4 @@ function utf8ize($mixed)
 		return mb_convert_encoding($mixed, "UTF-8", "UTF-8");
 		return mb_convert_encoding($mixed, "UTF-8", "UTF-8");
 	}
 	}
 	return $mixed;
 	return $mixed;
-}
+}