aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_webfinger
diff options
context:
space:
mode:
authorMichiel de Jong <michiel@unhosted.org>2012-05-11 10:26:30 +0200
committerMichiel de Jong <michiel@unhosted.org>2012-05-11 10:26:30 +0200
commit0c7f0aa3fa1b41f1e3a1ff15a1dbfa1a584608c3 (patch)
tree810b2fedc32baf821f890825bc4a56b4ae54bd54 /apps/user_webfinger
parent59a2616105e82d3f17d3eea188ce79fbc107eafa (diff)
downloadnextcloud-server-0c7f0aa3fa1b41f1e3a1ff15a1dbfa1a584608c3.tar.gz
nextcloud-server-0c7f0aa3fa1b41f1e3a1ff15a1dbfa1a584608c3.zip
attempt to align the webfinger app with new public.php routing
Diffstat (limited to 'apps/user_webfinger')
-rwxr-xr-xapps/user_webfinger/appinfo/app.php1
-rw-r--r--apps/user_webfinger/appinfo/install.php2
-rwxr-xr-xapps/user_webfinger/webfinger.php2
3 files changed, 2 insertions, 3 deletions
diff --git a/apps/user_webfinger/appinfo/app.php b/apps/user_webfinger/appinfo/app.php
index f7b927df82a..ffdbe9263e0 100755
--- a/apps/user_webfinger/appinfo/app.php
+++ b/apps/user_webfinger/appinfo/app.php
@@ -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');
diff --git a/apps/user_webfinger/appinfo/install.php b/apps/user_webfinger/appinfo/install.php
index c8d9a427425..00a533e781b 100644
--- a/apps/user_webfinger/appinfo/install.php
+++ b/apps/user_webfinger/appinfo/install.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\"?>
diff --git a/apps/user_webfinger/webfinger.php b/apps/user_webfinger/webfinger.php
index 307a1630019..4ea9b80c98c 100755
--- a/apps/user_webfinger/webfinger.php
+++ b/apps/user_webfinger/webfinger.php
@@ -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']));