Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14407236
D19396.id46398.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
831 B
Referenced Files
None
Subscribers
None
D19396.id46398.diff
View Options
diff --git a/src/aphront/response/AphrontResponse.php b/src/aphront/response/AphrontResponse.php
--- a/src/aphront/response/AphrontResponse.php
+++ b/src/aphront/response/AphrontResponse.php
@@ -113,6 +113,7 @@
try {
$cdn = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
+ $base_uri = PhabricatorEnv::getURI('/');
} catch (Exception $ex) {
return null;
}
@@ -124,8 +125,6 @@
// If an alternate file domain is not configured and the user is viewing
// a Phame blog on a custom domain or some other custom site, we'll still
// serve resources from the main site. Include the main site explicitly.
-
- $base_uri = PhabricatorEnv::getURI('/');
$base_uri = $this->newContentSecurityPolicySource($base_uri);
$default = "'self' {$base_uri}";
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 2:30 AM (1 h, 16 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6924389
Default Alt Text
D19396.id46398.diff (831 B)
Attached To
Mode
D19396: Fix excessively severe CSP URI error during first-time setup
Attached
Detach File
Event Timeline
Log In to Comment