https://bugzilla.wikimedia.org/show_bug.cgi?id=47958
Web browser: ---
Bug ID: 47958
Summary: Make GENDER ignore everything after slash
Product: MediaWiki
Version: 1.21-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
Slashes in user names are not allowed.[1] If the string contains slash(es) and
slash is not the first symbol, we can assume that text before the first slash
is a user name.
If my assumption is correct or is not false, then I'll send a patch for review.
Actually it will be a one-liner.
In CoreParserFunctions::gender():
if ( $title && $title->getNamespace() == NS_USER ) {
$username = $title->getText(); // change to $title->getRootText()
}
----
[1] http://www.mediawiki.org/wiki/Manual:User_table#user_name
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l