aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config/Common.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Config/Common.pm')
-rw-r--r--Bugzilla/Config/Common.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm
index a5b32c1db..e8dfe3e9d 100644
--- a/Bugzilla/Config/Common.pm
+++ b/Bugzilla/Config/Common.pm
@@ -249,8 +249,8 @@ sub check_font_file {
$font = trim($font);
return '' unless $font;
- if ($font !~ /\.ttf$/) {
- return "The file must point to a TrueType font file (its extension must be .ttf)"
+ if ($font !~ /\.(ttf|otf)$/) {
+ return "The file must point to a TrueType or OpenType font file (its extension must be .ttf or .otf)"
}
if (! -f $font) {
return "The file '$font' cannot be found. Make sure you typed the full path to the file"