On 2013-10-24 3:00 PM, Brion Vibber wrote: > 2) Search around for '255' appearing in .php, .inc, or .js files and change > the checks to 1023. > > You might be able to get away with mostly changing just this bit in > includes/Title.php: > > # Limit the size of titles to 255 bytes. This is typically the size > of the > # underlying database field. We make an exception for special > pages, which > # don't need to be stored in the database, and may edge over 255 > bytes due > # to subpage syntax for long titles, e.g. [[Special:Block/Long > name]] > if ( > ( $this->mNamespace != NS_SPECIAL && strlen( $dbkey ) > 255 ) > || strlen( $dbkey ) > 512 > ) { > return false; > } > > Update both the 255 and the 512 check with larger numbers (the 512 check is > for Special: pages, since they often take other page titles as parameters). > There's a JavaScript clone of this check in > resources/mediawiki/mediawiki.Title.js, which should probably be updated > likewise. Also either update all user_name fields in the database or update User::getCanonicalName to use a 255 byte limit instead of depending only on Title for that.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/] _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l