]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Prevent "https login" from breaking login on sites that are https by default
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 10 Nov 2010 08:33:04 +0000 (08:33 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 10 Nov 2010 08:33:04 +0000 (08:33 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7279 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/account/login_box.php

index 0f06720f3703499d2b31417eaf91cb0ec8e37d2b..4942afb09b71ee9dfa4c82d4424b30d022bf6a18 100644 (file)
@@ -10,7 +10,7 @@ $form_body = elgg_view('account/forms/login');
 
 $login_url = elgg_get_site_url();
 if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) {
-       $login_url = str_replace("http", "https", elgg_get_site_url());
+       $login_url = str_replace("http:", "https:", elgg_get_site_url());
 }
 ?>