Emmanuel Engelhart wrote:
hi
bug:
https://sourceforge.net/tracker/index.php?func=detail&aid=983680&gr…
The Problem comes from this lines in Title.php
<<
# Initial colon indicating main namespace
if ( ":" == $t{0} ) {
$r = substr( $t, 1 );
$this->mNamespace = NS_MAIN;
}
else {
(...)
}
I removed all this code portion (not (...)), and it seems to work. I
don't understand why an initial colon should indicate the
mainspace... and why an article can't start with ":" ? But I'm a
newcomer :)
So I hope that's an acceptable solution, otherwise a message on the
loginform with login rules could be appropriate ?
That's been there since time immemorial, and is used (no doubt among
other things) to allow template inclusion from the main namespace, e.g.
{{:Main page}}. Note that this is not a security problem, it's just
slightly confusing. A better solution would be to compare the text form
of the generated title object against the entered user name, and to
issue an error if they differ in anything other than case. That way
you'll catch not only initial colons, but all manner of other implicit
conversions, for example the removal of leading underscores.
-- Tim Starling