diff --git a/pixelegg/inc/class.pixelegg_framework.inc.php b/pixelegg/inc/class.pixelegg_framework.inc.php index ec2ac82e3a..282b31dd79 100755 --- a/pixelegg/inc/class.pixelegg_framework.inc.php +++ b/pixelegg/inc/class.pixelegg_framework.inc.php @@ -129,7 +129,7 @@ class pixelegg_framework extends Api\Framework\Ajax $loginbox_color = $color_darker; } - if (preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$color)) // a little xss check + if (preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$color) || preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$loginbox_color)) // a little xss check { if (!Api\Header\UserAgent::mobile()) {