From 20faf1fdada394b89858e679225c3da9796e3d28 Mon Sep 17 00:00:00 2001 From: csteipp Date: Fri, 27 Sep 2013 13:39:50 -0700 Subject: [PATCH] Redirect to https for signup Redirect to https for most user, since they will be sending their password with their signup request. GeoIP prevention of the redirect is still respected. Bug: 53651 Change-Id: I12646fcd268c78fd446c6dbf2ba201eee3846444 --- includes/specials/SpecialUserlogin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 48bef9d826..a68efc40b6 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -168,10 +168,7 @@ class LoginForm extends SpecialPage { // If logging in and not on HTTPS, either redirect to it or offer a link. global $wgSecureLogin; - if ( - $this->mType !== 'signup' && - WebRequest::detectProtocol() !== 'https' - ) { + if ( WebRequest::detectProtocol() !== 'https' ) { $title = $this->getFullTitle(); $query = array( 'returnto' => $this->mReturnTo, -- 2.20.1