From 6fdbac06ea46a6b01185aba34563f20ba3e20608 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 3 Jun 2019 15:33:57 +0200 Subject: [PATCH] ArticleAddForm doesn't validate imageIDs Closes #2935 --- wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php index 58104531ea..3d9767369c 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php @@ -231,6 +231,9 @@ class ArticleAddForm extends AbstractForm { if ($image !== null && $image->isImage) { $this->images[$languageID] = $image; } + else { + unset($this->imageID[$languageID]); + } } } } -- 2.20.1