Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14003434
D9511.id22790.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9511.id22790.diff
View Options
diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php
--- a/src/view/page/PhabricatorStandardPageView.php
+++ b/src/view/page/PhabricatorStandardPageView.php
@@ -375,6 +375,20 @@
$map = CelerityResourceMap::getNamedInstance('phabricator');
$swf_uri = $response->getURI($map, 'rsrc/swf/aphlict.swf');
+ // Aphlict MUST be served from the production domain, because CORS
+ // prevents Flash from executing applets on other domains (which is
+ // actually the intention of having an alternate domain in the first
+ // place).
+ $alt_domain =
+ PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
+ if ($alt_domain !== null) {
+ $swf_uri = str_replace(
+ $alt_domain,
+ '',
+ $swf_uri);
+ $swf_uri = PhabricatorEnv::getURI('/'.$swf_uri);
+ }
+
$enable_debug = PhabricatorEnv::getEnvConfig('notification.debug');
$subscriptions = $this->pageObjects;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 27, 6:09 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6751955
Default Alt Text
D9511.id22790.diff (1 KB)
Attached To
Mode
D9511: Ensure Aphlict is served on the primary domain
Attached
Detach File
Event Timeline
Log In to Comment