jenkins-bot has submitted this change and it was merged.

Change subject: Allow usernames with spaces on eligibility lists
......................................................................


Allow usernames with spaces on eligibility lists

Usernames containing space cannot be added to voter eligibility
lists through the user interface.

Bug: T134687
Change-Id: I282b226b452850fce401f506732a615084a60815
---
M includes/pages/VoterEligibilityPage.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/pages/VoterEligibilityPage.php 
b/includes/pages/VoterEligibilityPage.php
index bfde069..35dce7b 100644
--- a/includes/pages/VoterEligibilityPage.php
+++ b/includes/pages/VoterEligibilityPage.php
@@ -233,7 +233,7 @@
                                $name = trim( substr( $name, 0, $i ) );
                        }
                        if ( $wiki !== '' && $name !== '' ) {
-                               $wikiNames[$wiki][] = str_replace( ' ', '_', 
$name );
+                               $wikiNames[$wiki][] = str_replace( '_', ' ', 
$name );
                        }
                }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I282b226b452850fce401f506732a615084a60815
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Huji <huji.h...@gmail.com>
Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org>
Gerrit-Reviewer: Anomie <bjor...@wikimedia.org>
Gerrit-Reviewer: Chad <ch...@wikimedia.org>
Gerrit-Reviewer: Dereckson <dereck...@espace-win.org>
Gerrit-Reviewer: Jalexander <jalexan...@wikimedia.org>
Gerrit-Reviewer: Reedy <re...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to