IAlex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/59083


Change subject: Special:BlockList now handles correctly user names with spaces 
when passed as subpage
......................................................................

Special:BlockList now handles correctly user names with spaces when passed as 
subpage

bug: 47218
Change-Id: I3a52c454c64fdc599c7abcdca05b182e09640c59
---
M RELEASE-NOTES-1.22
M includes/specials/SpecialBlockList.php
2 files changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/83/59083/1

diff --git a/RELEASE-NOTES-1.22 b/RELEASE-NOTES-1.22
index c0d4951..4342e24 100644
--- a/RELEASE-NOTES-1.22
+++ b/RELEASE-NOTES-1.22
@@ -29,7 +29,8 @@
 === Bug fixes in 1.22 ===
 * Disable Special:PasswordReset when $wgEnableEmail. Previously one could still
   navigate to the page by entering the URL directly.
-
+* (bug 47218) Special:BlockList now handles correctly user names with spaces
+  when passed as subpage.
 
 === API changes in 1.22 ===
 * (bug 46626) xmldoublequote parameter was removed. Because of a bug, the
diff --git a/includes/specials/SpecialBlockList.php 
b/includes/specials/SpecialBlockList.php
index 25f9165..ccb5427 100644
--- a/includes/specials/SpecialBlockList.php
+++ b/includes/specials/SpecialBlockList.php
@@ -49,7 +49,7 @@
 
                $request = $this->getRequest();
                $par = $request->getVal( 'ip', $par );
-               $this->target = trim( $request->getVal( 'wpTarget', $par ) );
+               $this->target = str_replace( '_', ' ', trim( $request->getVal( 
'wpTarget', $par ) ) );
 
                $this->options = $request->getArray( 'wpOptions', array() );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3a52c454c64fdc599c7abcdca05b182e09640c59
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex <coderev...@emsenhuber.ch>

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

Reply via email to