Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13965317
D16519.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
964 B
Referenced Files
None
Subscribers
None
D16519.diff
View Options
diff --git a/src/applications/settings/setting/PhabricatorMonospacedFontSetting.php b/src/applications/settings/setting/PhabricatorMonospacedFontSetting.php
--- a/src/applications/settings/setting/PhabricatorMonospacedFontSetting.php
+++ b/src/applications/settings/setting/PhabricatorMonospacedFontSetting.php
@@ -34,15 +34,15 @@
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);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 17 2024, 1:16 AM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719987
Default Alt Text
D16519.diff (964 B)
Attached To
Mode
D16519: Added `-` to the whitelist for CSS rules
Attached
Detach File
Event Timeline
Log In to Comment