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

--- Comment #9 from Bartosz DziewoƄski <[email protected]> ---
Actually, we can't even check for the fragment reliably, because "User:Foo#"
(trailing hash sign) will be considered as having no fragment part.

I say we just explicitly check for a '#' in text there and call it a day.
I'm afraid to change the behavior of User::getCanonicalName() unless somebody
who knows more about how these things work verifies whatever I'd write.


(In reply to Umherirrender from comment #7)
> 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.

Yeah, you're right of course.

-- 
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

Reply via email to