]> source.dussan.org Git - nextcloud-server.git/commitdiff
oops! was hardcoding my test domain inadvertently
authorMichiel de Jong <michiel@unhosted.org>
Thu, 17 May 2012 18:59:55 +0000 (20:59 +0200)
committerMichiel de Jong <michiel@unhosted.org>
Thu, 17 May 2012 19:00:11 +0000 (21:00 +0200)
apps/user_webfinger/host-meta.php

index c3d6f0ed2ca0cbcc927ce46824d1c5947741c8fd..285caaa1278f4991aedd8fb9aad07cb771f84994 100644 (file)
@@ -19,7 +19,7 @@ if(isset($_SERVER['HTTPS'])) {
 $lrddTmpl .= '://' . $serverName . $webRoot . '/public.php?service=webfinger&q={uri}';
 $hostMetaPath = $docRoot . '/.well-known/host-meta';
 $hostMetaDir = $docRoot . '/.well-known';
-$hostMetaContents = "{\"links\":[{\"rel\":\"lrdd\",\"template\":\"http://mich.oc/public.php?service=webfinger&q={uri}\"}]}";
+$hostMetaContents = "{\"links\":[{\"rel\":\"lrdd\",\"template\":\"http'.(isset($_SERVER['HTTPS'])?'s':'').'://'.$serverName.'/public.php?service=webfinger&q={uri}\"}]}";
 foreach($hostMetaHeader as $header => $value) {
        header($header . ": " . $value);
 }