mirror of
https://github.com/24eme/signaturepdf
synced 2026-03-14 13:55:44 +01:00
wrong call uniqid
This commit is contained in:
parent
34a6b35f9c
commit
d3eacd0d9d
1 changed files with 2 additions and 2 deletions
4
app.php
4
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue