summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-08-10 10:01:17 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-08-10 10:01:56 +0200
commite73292339f018a5938339f0daa45e2eb78e1f879 (patch)
treea522e4d7d6c9c021bc1b757cbc335aac3ad9db68 /apps
parent2c5ab91c7d54332c27be6ed44c29d56503c7841e (diff)
downloadnextcloud-server-e73292339f018a5938339f0daa45e2eb78e1f879.tar.gz
nextcloud-server-e73292339f018a5938339f0daa45e2eb78e1f879.zip
Check if webfinger is enabled
Diffstat (limited to 'apps')
-rw-r--r--apps/user_webfinger/host-meta.php3
-rw-r--r--apps/user_webfinger/webfinger.php6
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/user_webfinger/host-meta.php b/apps/user_webfinger/host-meta.php
index 4ac37b1ea09..6f6ac46eb91 100644
--- a/apps/user_webfinger/host-meta.php
+++ b/apps/user_webfinger/host-meta.php
@@ -1,4 +1,7 @@
<?php
+if (!OCP\App::isEnabled("user_webfinger")) {
+ return;
+}
if(class_exists('OC')){
$WEBROOT=OC::$WEBROOT;
diff --git a/apps/user_webfinger/webfinger.php b/apps/user_webfinger/webfinger.php
index e5b7f042d5a..f06346672ff 100644
--- a/apps/user_webfinger/webfinger.php
+++ b/apps/user_webfinger/webfinger.php
@@ -1,4 +1,8 @@
<?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
**/
$userName = '';