Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14000915
D9511.id22789.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.id22789.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
Sat, Oct 26, 2:21 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6749688
Default Alt Text
D9511.id22789.diff (1 KB)
Attached To
Mode
D9511: Ensure Aphlict is served on the primary domain
Attached
Detach File
Event Timeline
Log In to Comment