From 3d683a68fe14b371f2dde9b12fe5da12479d37b0 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 15 Aug 2017 18:42:28 +0200 Subject: [PATCH] Fixed check --- .../lib/system/exception/ValidateActionException.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php b/wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php index bd61d92cb0..64bde0710f 100644 --- a/wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php +++ b/wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php @@ -29,7 +29,7 @@ class ValidateActionException extends \Exception { public function __construct($fieldName, $errorMessage = 'empty', array $variables = []) { $this->errorMessage = $errorMessage; if (mb_strpos($this->errorMessage, '.') === false) { - if (preg_match('~^([a-zA-Z0-9-_]+\.)+[a-zA-Z0-9-_]+$~', $this->errorMessage)) { + if (preg_match('~^[a-zA-Z0-9-_]+$~', $this->errorMessage)) { $this->errorMessage = WCF::getLanguage()->get('wcf.global.form.error.'.$this->errorMessage); } } -- 2.20.1