Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13218155
D18781.id45068.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
741 B
Referenced Files
None
Subscribers
None
D18781.id45068.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D18781: Include OpenGraph prefix material in <html> tag if OpenGraph is enabled
Attached
Detach File
Event Timeline
Log In to Comment