Skip to content

Commit

Permalink
Update Drawing.php
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman authored Dec 11, 2024
1 parent 52c35b5 commit 210dff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Worksheet/Drawing.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function setPath(string $path, bool $verifyFile = true, ?ZipArchive $zip
$ctx = null;
// https://github.com/php/php-src/issues/16023
if (str_starts_with($path, 'https:')) {
$ctx = stream_context_create(['ssl' => ['crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT]]);
$ctx = stream_context_create(['ssl' => ['crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT]]);
}
$imageContents = file_get_contents($path, false, $ctx);
if ($imageContents !== false) {
Expand Down

0 comments on commit 210dff1

Please sign in to comment.