diff --git a/src/applications/settings/setting/PhabricatorMonospacedFontSetting.php b/src/applications/settings/setting/PhabricatorMonospacedFontSetting.php index 3ce55b26ad..2a96f5d95f 100644 --- a/src/applications/settings/setting/PhabricatorMonospacedFontSetting.php +++ b/src/applications/settings/setting/PhabricatorMonospacedFontSetting.php @@ -34,15 +34,15 @@ final class PhabricatorMonospacedFontSetting throw new Exception( pht( 'Monospaced font value "%s" is unsafe. You may only enter '. - 'letters, numbers, spaces, commas, periods, forward slashes '. - 'and double quotes.', + 'letters, numbers, spaces, commas, periods, hyphens, '. + 'forward slashes, and double quotes', $value)); } } public static function filterMonospacedCSSRule($monospaced) { // Prevent the user from doing dangerous things. - return preg_replace('([^a-z0-9 ,"./]+)i', '', $monospaced); + return preg_replace('([^a-z0-9 ,"./-]+)i', '', $monospaced); } }