Skip to content
Snippets Groups Projects
Commit 78e8cbd5 authored by Lukas Reschke's avatar Lukas Reschke Committed by Jörn Friedrich Dreyer
Browse files

Check if webfinger is enabled

parent ffb55d5a
Branches
No related tags found
No related merge requests found
<?php
if (!OCP\App::isEnabled("user_webfinger")) {
return;
}
$hostMetaHeader = array(
'Access-Control-Allow-Origin' => '*',
'Content-Type' => 'application/xrd+json'
......
<?php
if (!OCP\App::isEnabled("user_webfinger")) {
return;
}
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/xrd+json");
......@@ -15,7 +19,7 @@ header("Content-Type: application/xrd+json");
* href="<?php echo WF_BASEURL; ?>/apps/myApp/profile.php?user=<?php echo WF_USER; ?>">
* </Link>
*
'* but can also use complex database queries to generate the webfinger result
* but can also use complex database queries to generate the webfinger result
**/
// calculate the documentroot
// modified version of the one in lib/base.php that takes the .well-known symlink into account
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment