Page MenuHomePhabricator

D18781.id45068.diff
No OneTemporary

D18781.id45068.diff

diff --git a/src/view/page/AphrontPageView.php b/src/view/page/AphrontPageView.php
--- a/src/view/page/AphrontPageView.php
+++ b/src/view/page/AphrontPageView.php
@@ -59,9 +59,15 @@
),
array($body, $tail));
+ if (PhabricatorEnv::getEnvConfig('policy.allow-public')) {
+ $html_open_tag = hsprintf('<html prefix="og: http://ogp.me/ns#">');
+ } else {
+ $html_open_tag = hsprintf('<html>');
+ }
+
$response = hsprintf(
'<!DOCTYPE html>'.
- '<html>'.
+ '%s'.
'<head>'.
'<meta charset="UTF-8" />'.
'<title>%s</title>'.
@@ -69,6 +75,7 @@
'</head>'.
'%s'.
'</html>',
+ $html_open_tag,
$title,
$head,
$body);

File Metadata

Mime Type
text/plain
Expires
Sun, May 19, 10:28 AM (2 w, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6302123
Default Alt Text
D18781.id45068.diff (741 B)

Event Timeline