ArticleAddForm doesn't validate imageIDs
authorMarcel Werk <burntime@woltlab.com>
Mon, 3 Jun 2019 13:33:57 +0000 (15:33 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 3 Jun 2019 13:33:57 +0000 (15:33 +0200)
Closes #2935

wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php

index 58104531ea235b1a84f632e43414d254d8c6d2e3..3d9767369cb5deb170d660c3904291a0dc612c4a 100644 (file)
@@ -231,6 +231,9 @@ class ArticleAddForm extends AbstractForm {
                                if ($image !== null && $image->isImage) {
                                        $this->images[$languageID] = $image;
                                }
+                               else {
+                                       unset($this->imageID[$languageID]);
+                               }
                        }
                }
        }