summaryrefslogtreecommitdiffstats
path: root/apps/user_openid
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-06-01 11:46:18 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-06-01 11:46:18 +0200
commita2b41a140ea7e29c27261b264dd39c21170f3fa7 (patch)
treecd957079296a1b45479bd2fc5c53d5941e04b0c6 /apps/user_openid
parent83c6714c723a1e224f2477192ca88bd6144b76e7 (diff)
downloadnextcloud-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.php2
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, &hellip;');?>" /><span class="msg"></span>
</fieldset>