attempt to align the webfinger app with new public.php routing
This commit is contained in:
parent
59a2616105
commit
0c7f0aa3fa
3 changed files with 2 additions and 3 deletions
|
@ -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']));
|
||||
|
|
Loading…
Reference in a new issue