From: Matthias Schmidt Date: Thu, 12 Jul 2012 20:10:04 +0000 (+0200) Subject: Adds missing validation of category's i18n values X-Git-Tag: 2.0.0_Beta_1~1004^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7bf0a4a56b727a4887f0f47142e7c6d5ea21ae4;p=GitHub%2FWoltLab%2FWCF.git Adds missing validation of category's i18n values --- diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php index e7d3a77a62..3fb3c6ddb5 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php @@ -305,6 +305,14 @@ abstract class AbstractCategoryAddForm extends ACPForm { parent::validate(); $this->validateParentCategory(); + + if (!I18nHandler::getInstance()->validateValue('title')) { + throw new UserInputException('title'); + } + + if (!I18nHandler::getInstance()->validateValue('description')) { + throw new UserInputException('description'); + } } /**