Page MenuHomePhabricator

$wgMaxSigChars can be circumvented by using templates
Closed, DuplicatePublic

Description

As reported at [https://www.mediawiki.org/wiki/Manual:$wgMaxSigChars?diff=568295] the setting introduced on r22960 (to fix bug 8458) do not consider the length of the substituted templates used in the signature, so although {{subst:<Very long template name>}} will be rejected if the template name has more than $wgMaxSigChars (-10) characters, {{subst:Main page}} will work even if the main page is a lot longer than $wgMaxSigChars.

The validation should be fixed to consider the length of the expanded (subst'ed) signature.


Version: unspecified
Severity: normal
URL: https://pt.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:P%C3%A1gina_de_testes/1&diff=31658120&oldid=31657872

Details

Reference
bz38974