]> git.agnieray.net Git - galette.git/blob - patches/tcpdf-php81.patch
1.0..4 changelog
[galette.git] / patches / tcpdf-php81.patch
1 diff -up vendor/tecnickcom/tcpdf/include/tcpdf_images.php.patch vendor/tecnickcom/tcpdf/include/tcpdf_images.php
2 --- vendor/tecnickcom/tcpdf/include/tcpdf_images.php.patch 2022-05-03 20:56:17.330248199 +0200
3 +++ vendor/tecnickcom/tcpdf/include/tcpdf_images.php 2022-05-03 20:56:28.359497624 +0200
4 @@ -79,7 +79,7 @@ class TCPDF_IMAGES {
5 }
6 }
7 if (empty($type)) {
8 - $type = strtolower(trim(pathinfo(parse_url($imgfile, PHP_URL_PATH), PATHINFO_EXTENSION)));
9 + $type = strtolower(trim(pathinfo(parse_url($imgfile, PHP_URL_PATH) ?? '', PATHINFO_EXTENSION)));
10 }
11 if ($type == 'jpg') {
12 $type = 'jpeg';