]> source.dussan.org Git - nextcloud-server.git/commitdiff
correctly detect https
authorFrank Karlitschek <frank@owncloud.org>
Fri, 1 Jun 2012 09:46:18 +0000 (11:46 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Fri, 1 Jun 2012 09:46:18 +0000 (11:46 +0200)
apps/user_openid/templates/settings.php

index 731a2c57e98e4bf1f7ef2da81ac9ce76503b5185..b2bbe5a46ae118615a449b6937f3076b47259e9b 100644 (file)
@@ -1,7 +1,7 @@
 <form id="openidform">
        <fieldset class="personalblock">
                <strong>OpenID</strong>
-               <?php echo ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http').'://'.OCP\Util::getServerHost().OC::$WEBROOT.'/?'; echo OCP\USER::getUser(); ?><br /><em><?php echo $l->t('you can authenticate to other sites with this address');?></em><br />
+               <?php echo (OCP\Util::getServerProtocol()).'://'.OCP\Util::getServerHost().OC::$WEBROOT.'/?'; echo OCP\USER::getUser(); ?><br /><em><?php echo $l->t('you can authenticate to other sites with this address');?></em><br />
                <label for="identity"><?php echo $l->t('Authorized OpenID provider');?></label>
                <input type="text" name="identity" id="identity" value="<?php echo $_['identity']; ?>" placeholder="<?php echo $l->t('Your address at Wordpress, Identi.ca, &hellip;');?>" /><span class="msg"></span>
        </fieldset>