Normalise user names passed to Special:BlockList
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 14 Apr 2013 20:11:51 +0000 (22:11 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 18 Apr 2013 16:48:11 +0000 (18:48 +0200)
Special:BlockList now handles correctly user names with spaces when passed as subpage

bug: 47218
Change-Id: I3a52c454c64fdc599c7abcdca05b182e09640c59

RELEASE-NOTES-1.22
includes/specials/SpecialBlockList.php

index d1d9654..5c6de79 100644 (file)
@@ -39,6 +39,8 @@ production.
   correctly.
 * (bug 45803) Whitespace within == Headline == syntax and within <hN> headings
   is now non-significant and not preserved in the HTML output.
+* (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
index 25f9165..4868a75 100644 (file)
@@ -141,7 +141,7 @@ class SpecialBlockList extends SpecialPage {
                                        break;
 
                                case Block::TYPE_USER:
-                                       $conds['ipb_address'] = (string)$this->target;
+                                       $conds['ipb_address'] = $target->getName();
                                        $conds['ipb_auto'] = 0;
                                        break;
                        }