diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-06-01 11:46:18 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-06-01 11:46:18 +0200 |
commit | a2b41a140ea7e29c27261b264dd39c21170f3fa7 (patch) | |
tree | cd957079296a1b45479bd2fc5c53d5941e04b0c6 /apps/user_openid | |
parent | 83c6714c723a1e224f2477192ca88bd6144b76e7 (diff) | |
download | nextcloud-server-a2b41a140ea7e29c27261b264dd39c21170f3fa7.tar.gz nextcloud-server-a2b41a140ea7e29c27261b264dd39c21170f3fa7.zip |
correctly detect https
Diffstat (limited to 'apps/user_openid')
-rw-r--r-- | apps/user_openid/templates/settings.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_openid/templates/settings.php b/apps/user_openid/templates/settings.php index 731a2c57e98..b2bbe5a46ae 100644 --- a/apps/user_openid/templates/settings.php +++ b/apps/user_openid/templates/settings.php @@ -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, …');?>" /><span class="msg"></span> </fieldset> |