diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-06-01 11:47:14 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-06-01 11:47:14 +0200 |
commit | e44f9ab46e37ccfa5c21fd42b450d09fc0ffa1f4 (patch) | |
tree | 569c5c24675a0f9d47493047599a1d5107206cd4 /apps | |
parent | 8ed13e627eab45c895c0bfc6312d5297b3aebeac (diff) | |
download | nextcloud-server-e44f9ab46e37ccfa5c21fd42b450d09fc0ffa1f4.tar.gz nextcloud-server-e44f9ab46e37ccfa5c21fd42b450d09fc0ffa1f4.zip |
correctly detect https
Diffstat (limited to 'apps')
-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> |