diff --git a/app.php b/app.php index ac4f3aa..a83546b 100644 --- a/app.php +++ b/app.php @@ -232,7 +232,7 @@ $f3->route('GET /signature/@hash/pdf', $originalFilename = null; $layers = []; foreach($files as $file) { - if (strpos($file, 'signe.pdf') !== false) { + if (strpos($file, '.pdf') === false || strpos($file, 'signe.pdf') !== false) { continue; } if(strpos($file, 'svg.pdf') !== false) {