Debug TCPDF file name with spaces

This commit is contained in:
Sylvain Legrand 2022-02-25 09:26:19 +01:00
parent c097ee5331
commit 30d8174ac5

View File

@ -6881,6 +6881,11 @@ class TCPDF {
// DOL CHANGE If we keep this, the image is not visible on pages after the first one.
//var_dump($file.' '.(!@TCPDF_STATIC::file_exists($file)));
//return false;
// try to encode spaces on filename
$tfile = str_replace(' ', '%20', $file);
if (@TCPDF_STATIC::file_exists($tfile)) {
$file = $tfile;
}
}
if (($imsize = @getimagesize($file)) === FALSE) {
if (in_array($file, $this->imagekeys)) {