From a360ea6b6d4928075eb9b4e01ad67f51b2f0bd55 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 25 Sep 2016 12:26:44 +0200 Subject: [PATCH] Fixed regex for color converter --- .../html/metacode/converter/ColorMetacodeConverter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/ColorMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/ColorMetacodeConverter.class.php index 1225d2b866..0ca82ece7f 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/ColorMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/ColorMetacodeConverter.class.php @@ -31,7 +31,7 @@ class ColorMetacodeConverter extends AbstractMetacodeConverter { } // validates if code is a valid (short) HEX color code - if (!preg_match('~^#[A-F0-9]{3}(?:[A-F0-9]{3})?$~i', $attributes[0])) { + if (!preg_match('~^\#[A-F0-9]{3}(?:[A-F0-9]{3})?$~i', $attributes[0])) { return false; } -- 2.20.1