Page MenuHomePhabricator

how to display underscore in username.
Closed, ResolvedPublic

Description

Author: mitulkoradia

Description:
I am using MediaWiki software version 1.11.0 and updated it to authenticate using LDAP. Now some of our users are having username with "_" underscore. MediaWiki is replacing underscore with spaces. How to display users with underscore as it is on user interface.

Is there any specific place in code from where i can ignore replacement of spaces with underscore in username.


Version: 1.11.x
Severity: enhancement

Details

Reference
bz19612

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:43 PM
bzimport set Reference to bz19612.
bzimport added a subscriber: Unknown Object (MLST).

herd wrote:

*** This bug has been marked as a duplicate of bug 3516 ***

mitulkoradia wrote:

It is ok that mediawiki is not accepting underscore. My user name with underscore and mediawiki is working fine. i just have a problem with displaying them. For eg.

My Username is: Test_Account

If i tried login using that username it works fine with our LDAP code in mediawiki but when we are creating that users if it is not in mediawiki database it store as "Test Account" (without underscore) Now if i want to by pass that logic that is replacing _ in username what needs to be done and where?

If this is not possible to modify that logic then how can we just replace back the underscore in username with space at the time of display.

If you can help me to resolve this issue I will be thank full to you.