User "Platonides" posted a comment on MediaWiki.r87808. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/87808#c17033 Commit summary:
Prevent user from trying to move a page to a title longer than 255 bytes. This just puts a maxlength on the field (+ byte counter js) which is much nicer and clearer feedback to the user if they went over the limit then: "The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title. It may contain one or more characters which cannot be used in titles" Which doesn't exactly indicate a length error. Comment: You could iterate all namespaces to find the upper limit. But it kind of breaks as you can easily get a limit enforced in the UI and then a lower one by the server, although JavaScript could detect namespaces and add their length to the limit. _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
