From c554e902c79b328a83aa7f0aa2493f8abce15392 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 11 Oct 2024 21:23:07 +0200 Subject: [PATCH] redirect after media upload error --- app/class/Controllermedia.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/class/Controllermedia.php b/app/class/Controllermedia.php index f93544f8..5393e752 100644 --- a/app/class/Controllermedia.php +++ b/app/class/Controllermedia.php @@ -97,11 +97,11 @@ public function upload() $fontfacer = new Servicefont($this->mediamanager); $fontfacer->writecss(); } - $this->redirect($this->generate('media') . $_POST['route']); } catch (RuntimeException $e) { Model::sendflashmessage($e->getMessage(), Model::FLASH_ERROR); } } + $this->redirect($this->generate('media') . $_POST['route']); } else { http_response_code(403); $this->showtemplate('forbidden');