From f82ec19809dae8057a49d4f56aa57a87270014c8 Mon Sep 17 00:00:00 2001 From: Jb Lm Date: Fri, 1 Apr 2022 10:36:29 +0200 Subject: [PATCH] bug correction --- app.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.php b/app.php index 0d49563..f55f9da 100644 --- a/app.php +++ b/app.php @@ -211,7 +211,7 @@ $f3->route('POST /share', shell_exec(sprintf("rsvg-convert -f pdf -o %s %s", $tmpfile.'.svg.pdf', $svgFiles)); if(!$f3->get('DEBUG')) { - array_map('unlink', $svgFiles); + array_map('unlink', explode(' ', trim($svgFiles))); } $f3->reroute('/signature/'.$hash."#informations"); @@ -309,7 +309,7 @@ $f3->route('POST /signature/@hash/save', shell_exec(sprintf("rsvg-convert -f pdf -o %s %s", $tmpfile.'.svg.pdf', $svgFiles)); if(!$f3->get('DEBUG')) { - array_map('unlink', $svgFiles); + array_map('unlink', explode(' ', trim($svgFiles))); } $f3->reroute('/signature/'.$f3->get('PARAMS.hash')."#signed");