Make loginbox custom color selection independent of custom color

This commit is contained in:
Hadi Nategh 2019-06-14 15:22:21 +02:00
parent 4d8164bb77
commit 78ec00bad1

View File

@ -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())
{