diff options
author | Michiel de Jong <michiel@unhosted.org> | 2012-05-17 20:59:55 +0200 |
---|---|---|
committer | Michiel de Jong <michiel@unhosted.org> | 2012-05-17 21:00:11 +0200 |
commit | 3e454d345950a33a25312a3a47ee7705b0034385 (patch) | |
tree | 4c0b1dbb200e5d1975cdad7ccaeb351a58f2f0ae /apps | |
parent | 7a7c301d7d0643fbb1a3a31b8ad5974013567270 (diff) | |
download | nextcloud-server-3e454d345950a33a25312a3a47ee7705b0034385.tar.gz nextcloud-server-3e454d345950a33a25312a3a47ee7705b0034385.zip |
oops! was hardcoding my test domain inadvertently
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_webfinger/host-meta.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_webfinger/host-meta.php b/apps/user_webfinger/host-meta.php index c3d6f0ed2ca..285caaa1278 100644 --- a/apps/user_webfinger/host-meta.php +++ b/apps/user_webfinger/host-meta.php @@ -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); } |