From: Marcel Werk Date: Mon, 3 Jun 2019 13:33:57 +0000 (+0200) Subject: ArticleAddForm doesn't validate imageIDs X-Git-Tag: 5.2.0_Alpha_1~19^2~2^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fdbac06ea46a6b01185aba34563f20ba3e20608;p=GitHub%2FWoltLab%2FWCF.git ArticleAddForm doesn't validate imageIDs Closes #2935 --- 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]); + } } } }