]> source.dussan.org Git - nextcloud-server.git/commitdiff
correct protocol
authorMichiel@unhosted <michiel@unhosted.org>
Sun, 11 Sep 2011 23:22:40 +0000 (01:22 +0200)
committerMichiel@unhosted <michiel@unhosted.org>
Sun, 11 Sep 2011 23:22:40 +0000 (01:22 +0200)
apps/user_webfinger/host-meta.php
apps/user_webfinger/webfinger.php

index d59629d109124ad80801ae6a816a5ce8e6cda3b9..eec473e494e09631e52c5d02f211ceaa31bed330 100644 (file)
@@ -6,7 +6,7 @@ echo "<";
 ?xml version="1.0" encoding="UTF-8"?>
 <XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0" xmlns:hm="http://host-meta.net/xrd/1.0">
        <hm:Host xmlns="http://host-meta.net/xrd/1.0"><?php echo $_SERVER['SERVER_NAME'] ?></hm:Host>
-       <Link rel="lrdd" template="<?php echo $_SERVER['SERVER_NAME'] ?>://<?php echo $_SERVER['SERVER_NAME'] ?>/.well-known/webfinger.php?q={uri}">
+       <Link rel="lrdd" template="http<?php echo ($_SERVER['HTTPS']?'s':''); ?>://<?php echo $_SERVER['SERVER_NAME'] ?>/.well-known/webfinger.php?q={uri}">
        </Link>
 </XRD>
 
index 379a2f18995c59526a4c42cdede14638bf6a3ad3..fdec9e8e5633f2aecce375d4b31e7ab6ceee5dc7 100644 (file)
@@ -16,5 +16,5 @@ echo "<";
 xml version="1.0" encoding="UTF-8"?>
 <XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0" xmlns:hm="http://host-meta.net/xrd/1.0">
        <hm:Host xmlns="http://host-meta.net/xrd/1.0"><?php echo $_SERVER['SERVER_NAME'] ?></hm:Host>
-       <Link rel="http://unhosted.org/spec/dav/0.1" href="<?php echo $_SERVER['SERVER_NAME'] ?>://<?php echo $_SERVER['SERVER_NAME'] ?>/apps/unhosted/compat.php/<?php echo $userName ?>/unhosted/"></Link>
+       <Link rel="http://unhosted.org/spec/dav/0.1" href="http<?php echo ($_SERVER['HTTPS']?'s':''); ?>://<?php echo $_SERVER['SERVER_NAME'] ?>/apps/unhosted/compat.php/<?php echo $userName ?>/unhosted/"></Link>
 </XRD>