Fixed check
authorAlexander Ebert <ebert@woltlab.com>
Tue, 15 Aug 2017 16:42:28 +0000 (18:42 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 15 Aug 2017 16:42:28 +0000 (18:42 +0200)
wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php

index bd61d92cb0c96731cb2c7e10f80f820cf9669101..64bde0710f51e26ae035c1410ab47141235275ed 100644 (file)
@@ -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);
                        }
                }