diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-05-22 19:50:05 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-05-22 19:50:05 +0300 |
commit | c806d33ff4d25a0658680c3627a8d95da1a3331a (patch) | |
tree | b50840fd3a369b1e6a18702566c97bdbb43e210b /plugins/CoreAdminHome/OptOutManager.php | |
parent | 68d3b581cec30a12ef6c1660071c65ba3506d644 (diff) |
Allow numbers in css font family for opt out iframe (#12953)
Diffstat (limited to 'plugins/CoreAdminHome/OptOutManager.php')
-rw-r--r-- | plugins/CoreAdminHome/OptOutManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreAdminHome/OptOutManager.php b/plugins/CoreAdminHome/OptOutManager.php index d7829e9962..9b2a378ad6 100644 --- a/plugins/CoreAdminHome/OptOutManager.php +++ b/plugins/CoreAdminHome/OptOutManager.php @@ -241,7 +241,7 @@ class OptOutManager 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"); |