Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15506074
D12684.id30450.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1003 B
Referenced Files
None
Subscribers
None
D12684.id30450.diff
View Options
diff --git a/src/applications/celerity/controller/CelerityResourceController.php b/src/applications/celerity/controller/CelerityResourceController.php
--- a/src/applications/celerity/controller/CelerityResourceController.php
+++ b/src/applications/celerity/controller/CelerityResourceController.php
@@ -101,8 +101,15 @@
$response->setMimeType($type_map[$type]);
// NOTE: This is a piece of magic required to make WOFF fonts work in
- // Firefox. Possibly we should generalize this.
- if ($type == 'woff' || $type == 'woff2') {
+ // Firefox and IE. Possibly we should generalize this more.
+
+ $cross_origin_types = array(
+ 'woff' => true,
+ 'woff2' => true,
+ 'eot' => true,
+ );
+
+ if (isset($cross_origin_types[$type])) {
// We could be more tailored here, but it's not currently trivial to
// generate a comprehensive list of valid origins (an install may have
// arbitrarily many Phame blogs, for example), and we lose nothing by
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 16, 8:29 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704063
Default Alt Text
D12684.id30450.diff (1003 B)
Attached To
Mode
D12684: Probably fix cross-origin font requests in IE
Attached
Detach File
Event Timeline
Log In to Comment