Page MenuHomePhabricator

D15904.id38304.diff
No OneTemporary

D15904.id38304.diff

diff --git a/src/applications/settings/storage/PhabricatorUserPreferences.php b/src/applications/settings/storage/PhabricatorUserPreferences.php
--- a/src/applications/settings/storage/PhabricatorUserPreferences.php
+++ b/src/applications/settings/storage/PhabricatorUserPreferences.php
@@ -113,7 +113,7 @@
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);
}
}

File Metadata

Mime Type
text/plain
Expires
Sep 16 2025, 6:42 AM (5 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
9419621
Default Alt Text
D15904.id38304.diff (568 B)

Event Timeline