From 78ec00bad17602bbd096cb8bd9504541782ee488 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 14 Jun 2019 15:22:21 +0200 Subject: [PATCH] Make loginbox custom color selection independent of custom color --- pixelegg/inc/class.pixelegg_framework.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixelegg/inc/class.pixelegg_framework.inc.php b/pixelegg/inc/class.pixelegg_framework.inc.php index ec2ac82e3ad..282b31dd791 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()) {