From d3eacd0d9dad2d02801d4ff4d1d4d170c73d4155 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Thu, 1 Aug 2024 16:08:05 +0200 Subject: [PATCH] wrong call uniqid --- app.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.php b/app.php index 29c3a66..235c1d1 100644 --- a/app.php +++ b/app.php @@ -171,7 +171,7 @@ $f3->route('POST /image2svg', $f3->route('POST /sign', function($f3) { $filename = null; - $tmpfile = tempnam($f3->get('UPLOADS'), 'pdfsignature_sign_'.uniqid(null, true)); + $tmpfile = tempnam($f3->get('UPLOADS'), 'pdfsignature_sign_'.uniqid("", true)); unlink($tmpfile); $svgFiles = []; @@ -403,7 +403,7 @@ $f3->route('GET /compress', $f3->route ('POST /compress', function($f3) { $filename = null; - $tmpfile = tempnam($f3->get('UPLOADS'), 'pdfsignature_compress_'.uniqid()); + $tmpfile = tempnam($f3->get('UPLOADS'), 'pdfsignature_compress_'.uniqid("", true)); unlink($tmpfile); $files = Web::instance()->receive(function($file,$formFieldName) {