Page MenuHomePhabricator

D9511.id22790.diff
No OneTemporary

D9511.id22790.diff

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

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)

Event Timeline