From 68c7b6d76332d7fa42aae58658cdb6f78960d9b9 Mon Sep 17 00:00:00 2001 From: takeuji <8424850+takeuji@users.noreply.github.com> Date: Mon, 29 Aug 2022 12:27:27 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=AE?= =?UTF-8?q?=E3=82=A2=E3=83=83=E3=83=97=E3=83=AD=E3=83=BC=E3=83=89=E6=99=82?= =?UTF-8?q?=E3=81=AB=E3=82=A8=E3=83=A9=E3=83=BC=E3=83=A1=E3=83=83=E3=82=BB?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=82=92=E9=87=8D=E8=A4=87=E3=81=97=E3=81=A6?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Eccube/Controller/Admin/Content/FileController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Eccube/Controller/Admin/Content/FileController.php b/src/Eccube/Controller/Admin/Content/FileController.php index 228a825546c..3760da58a9b 100644 --- a/src/Eccube/Controller/Admin/Content/FileController.php +++ b/src/Eccube/Controller/Admin/Content/FileController.php @@ -313,7 +313,9 @@ public function upload(Request $request) throw new UnsupportedMediaTypeHttpException(trans('admin.content.file.dotfile_error')); } } catch (UnsupportedMediaTypeHttpException $e) { - $this->errors[] = ['message' => $e->getMessage()]; + if (!in_array($e->getMessage(), array_column($this->errors, 'message'))) { + $this->errors[] = ['message' => $e->getMessage()]; + } continue; } try {