Index: trunk/phase3/includes/Title.php |
— | — | @@ -1916,9 +1916,13 @@ |
1917 | 1917 | $this->mNamespace != NS_MAIN ) { |
1918 | 1918 | return false; |
1919 | 1919 | } |
1920 | | - // Allow IPv6 to start with '::' by expanding it. |
1921 | | - // This trims all input, but that happens anyway. |
1922 | | - $dbkey = IP::sanitizeIP( $dbkey ); |
| 1920 | + // Allow IPv6 usernames to start with '::' by canonicalizing IPv6 titles. |
| 1921 | + // IP names are not allowed for accounts, and can only be referring to |
| 1922 | + // edits from the IP. IPv6, given '::' abbreviations and caps/lowercaps, |
| 1923 | + // there are numerous ways to present the same IP. Having sp:contribs scan |
| 1924 | + // them all is silly and having some show the edits and others not is |
| 1925 | + // inconsistent. Keep them normalized instead. |
| 1926 | + $dbkey = $this->mNamespace == NS_USER ? IP::sanitizeIP( $dbkey ) : $dbkey; |
1923 | 1927 | // Any remaining initial :s are illegal. |
1924 | 1928 | if ( $dbkey !== '' && ':' == $dbkey{0} ) { |
1925 | 1929 | return false; |