From b83e325c386e73c190da18a9c742095e6285977d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ausw=C3=B6ger?= Date: Mon, 7 Jan 2019 13:19:28 +0100 Subject: [PATCH] Fix TCPDF_STATIC::fileGetContents() Currently only the first path in the `$alt` array gets checked. This pull request fixes this so that all paths are checked. --- include/tcpdf_static.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tcpdf_static.php b/include/tcpdf_static.php index df1b28e..49bbe0b 100644 --- a/include/tcpdf_static.php +++ b/include/tcpdf_static.php @@ -1926,7 +1926,7 @@ class TCPDF_STATIC { $alt = array_unique($alt); foreach ($alt as $path) { if (!self::file_exists($path)) { - return false; + continue; } $ret = @file_get_contents($path); if ($ret !== false) {