Fomafix has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/365290 )

Change subject: Add urlencode for URL encoding of lang values
......................................................................

Add urlencode for URL encoding of lang values

Change-Id: If7d21223536d1873b3bfed154649d3dcb9850f9b
---
M includes/specialpage/LoginSignupSpecialPage.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/90/365290/1

diff --git a/includes/specialpage/LoginSignupSpecialPage.php 
b/includes/specialpage/LoginSignupSpecialPage.php
index 5c048a2..0600642 100644
--- a/includes/specialpage/LoginSignupSpecialPage.php
+++ b/includes/specialpage/LoginSignupSpecialPage.php
@@ -761,7 +761,7 @@
                if ( $this->showCreateAccountLink() ) {
                        # Pass any language selection on to the mode switch link
                        if ( $this->mLanguage ) {
-                               $linkq .= '&uselang=' . $this->mLanguage;
+                               $linkq .= '&uselang=' . urlencode( 
$this->mLanguage );
                        }
                        // Supply URL, login template creates the button.
                        $template->set( 'createOrLoginHref', 
$titleObj->getLocalURL( $linkq ) );
@@ -1149,7 +1149,7 @@
                                $linkq = 
$this->getReturnToQueryStringFragment();
                                // Pass any language selection on to the mode 
switch link
                                if ( $this->mLanguage ) {
-                                       $linkq .= '&uselang=' . 
$this->mLanguage;
+                                       $linkq .= '&uselang=' . urlencode( 
$this->mLanguage );
                                }
                                $loggedIn = $this->getUser()->isLoggedIn();
 

-- 
To view, visit https://gerrit.wikimedia.org/r/365290
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If7d21223536d1873b3bfed154649d3dcb9850f9b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Fomafix <foma...@googlemail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to