From c7bf0a4a56b727a4887f0f47142e7c6d5ea21ae4 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 12 Jul 2012 22:10:04 +0200 Subject: [PATCH] Adds missing validation of category's i18n values --- .../files/lib/acp/form/AbstractCategoryAddForm.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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'); + } } /** -- 2.20.1