Skip to content
Snippets Groups Projects
Commit 0c7f0aa3 authored by Michiel de Jong's avatar Michiel de Jong
Browse files

attempt to align the webfinger app with new public.php routing

parent 59a26161
Branches
No related tags found
No related merge requests found
......@@ -3,3 +3,4 @@ OCP\App::register( array(
'order' => 11,
'id' => 'user_webfinger',
'name' => 'Webfinger' ));
OCP\CONFIG::setAppValue('core', 'public_webfinger', '/apps/user_webfinger/webfinger.php');
......@@ -19,7 +19,7 @@ $lrddTmpl = 'http';
if(isset($_SERVER['HTTPS'])) {
$lrddTmpl .= 's';
}
$lrddTmpl .= '://' . $serverName . $webRoot . '/apps/user_webfinger/webfinger.php?q={uri}';
$lrddTmpl .= '://' . $serverName . $webRoot . '/public.php?service=webfinger&q={uri}';
$hostMetaPath = $docRoot . '/.well-known/host-meta';
$hostMetaDir = $docRoot . '/.well-known';
$hostMetaContents = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
......
......@@ -25,8 +25,6 @@ $SUBURI=substr(realpath($_SERVER["SCRIPT_FILENAME"]),strlen($SERVERROOT));
$WEBROOT=substr($SUBURI,0,-34);
*/
require_once('../../lib/base.php');
$userName = '';
$hostName = '';
$request = strip_tags(urldecode($_GET['q']));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment