https://bugzilla.wikimedia.org/show_bug.cgi?id=64960

--- Comment #7 from Umherirrender <umherirrender_de...@web.de> ---
(In reply to Bartosz DziewoƄski from comment #6)
> (In reply to Umherirrender from comment #4)
> > Possible caused by Gerrit change #115329 where a Title call was added
> 
> Ugh, sounds likely. We should probably check the the object returned by
> Title::makeTitleSafe() is in the User: namespace and has no interwiki or
> fragment parts. (We should also probably make this a separate methods and
> add tests.)

I am not sure, but that sounds like User::getCanonicalName (which also handles
the # part), which gets called by User::newFromName, but due to gerrit 115329
there seems a problem with that, but I cannot see the problem at the moment.

Title::makeTitleSafe here will you give always a title in User namespace and
without a interwiki or null, if that is not possible. By using
Title::newFromText you have to check that, because there the given title can
override the default namespace. With makeTitleSafe it should be impossible to
do that.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to