Page MenuHomePhabricator

D19277.id46142.diff
No OneTemporary

D19277.id46142.diff

diff --git a/src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php b/src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php
--- a/src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php
+++ b/src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php
@@ -52,4 +52,9 @@
return $this->getEngine()->storeText($iframe);
}
+ public function didMarkupText() {
+ CelerityAPI::getStaticResourceResponse()
+ ->addContentSecurityPolicyURI('frame-src', 'https://www.youtube.com/');
+ }
+
}

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 24, 10:57 AM (2 d, 2 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7531373
Default Alt Text
D19277.id46142.diff (541 B)

Event Timeline