diff --git a/src/applications/settings/storage/PhabricatorUserPreferences.php b/src/applications/settings/storage/PhabricatorUserPreferences.php index 271fd1afb4..d8c4982ccc 100644 --- a/src/applications/settings/storage/PhabricatorUserPreferences.php +++ b/src/applications/settings/storage/PhabricatorUserPreferences.php @@ -113,7 +113,7 @@ final class PhabricatorUserPreferences extends PhabricatorUserDAO { 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); } }