From: Alexander Ebert Date: Sun, 25 Sep 2016 10:26:44 +0000 (+0200) Subject: Fixed regex for color converter X-Git-Tag: 3.0.0_Beta_2~152 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a360ea6b6d4928075eb9b4e01ad67f51b2f0bd55;p=GitHub%2FWoltLab%2FWCF.git Fixed regex for color converter --- 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; }