Skip to content

Commit

Permalink
Allow numbers in css font family for opt out iframe (#12953)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored and diosmosis committed May 22, 2018
1 parent 68d3b58 commit c806d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/CoreAdminHome/OptOutManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private function optOutStyling()
throw new \Exception("The URL parameter fontSize value of '$cssfontsize' is not valid. Expected value is for example '15pt', '1.2em' or '13px'.\n");
}

if ($cssfontfamily && (preg_match('/^[a-zA-Z-\ ,\'"]+$/', $cssfontfamily))) {
if ($cssfontfamily && (preg_match('/^[a-zA-Z0-9-\ ,\'"]+$/', $cssfontfamily))) {
$cssbody .= 'font-family: ' . $cssfontfamily . '; ';
} else if ($cssfontfamily) {
throw new \Exception("The URL parameter fontFamily value of '$cssfontfamily' is not valid. Expected value is for example 'sans-serif' or 'Monaco, monospace'.\n");
Expand Down

0 comments on commit c806d33

Please sign in to comment.