From 09755f3946e1cfaf88bf8fd6e05d5c5dfcdb3d58 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 14 Apr 2013 22:11:51 +0200 Subject: [PATCH] Normalise user names passed to Special:BlockList Special:BlockList now handles correctly user names with spaces when passed as subpage bug: 47218 Change-Id: I3a52c454c64fdc599c7abcdca05b182e09640c59 --- RELEASE-NOTES-1.22 | 2 ++ includes/specials/SpecialBlockList.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.22 b/RELEASE-NOTES-1.22 index d1d96544cc..5c6de79c12 100644 --- a/RELEASE-NOTES-1.22 +++ b/RELEASE-NOTES-1.22 @@ -39,6 +39,8 @@ production. correctly. * (bug 45803) Whitespace within == Headline == syntax and within 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 diff --git a/includes/specials/SpecialBlockList.php b/includes/specials/SpecialBlockList.php index 25f9165afb..4868a75fd8 100644 --- a/includes/specials/SpecialBlockList.php +++ b/includes/specials/SpecialBlockList.php @@ -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; } -- 2.20.1