jenkins-bot has submitted this change and it was merged.
Change subject: Normalise user names passed to Special:BlockList
......................................................................
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
---
M RELEASE-NOTES-1.22
M includes/specials/SpecialBlockList.php
2 files changed, 3 insertions(+), 1 deletion(-)
Approvals:
Parent5446: Looks good to me, approved
jenkins-bot: Verified
diff --git a/RELEASE-NOTES-1.22 b/RELEASE-NOTES-1.22
index d1d9654..5c6de79 100644
--- a/RELEASE-NOTES-1.22
+++ b/RELEASE-NOTES-1.22
@@ -39,6 +39,8 @@
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
diff --git a/includes/specials/SpecialBlockList.php
b/includes/specials/SpecialBlockList.php
index 25f9165..4868a75 100644
--- a/includes/specials/SpecialBlockList.php
+++ b/includes/specials/SpecialBlockList.php
@@ -141,7 +141,7 @@
break;
case Block::TYPE_USER:
- $conds['ipb_address'] =
(string)$this->target;
+ $conds['ipb_address'] =
$target->getName();
$conds['ipb_auto'] = 0;
break;
}
--
To view, visit https://gerrit.wikimedia.org/r/59083
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3a52c454c64fdc599c7abcdca05b182e09640c59
Gerrit-PatchSet: 7
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: IAlex <[email protected]>
Gerrit-Reviewer: Liangent <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits