(Bug 27539) Allow attributes beginning with a digit in wiktext tag parameters.
authorPlatonides <platonides@users.mediawiki.org>
Sat, 19 Feb 2011 20:16:54 +0000 (20:16 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 19 Feb 2011 20:16:54 +0000 (20:16 +0000)
commitb856f6605b00061ea14ab8d6af9746ec35daa77f
treebac3af5ad0d403fc1bd62822fc679ed0c3252691
parent6cf384a7494b3303f2256ee7fcb5f743856bc7db
(Bug 27539) Allow attributes beginning with a digit in wiktext tag parameters.
Its removal in r70849 breaks ProofreadPage extension.
Restricted r82475 relaxation to just numbers.
Added tests.

This only affects wikitext (tag hooks).
MW_ATTRIBS_REGEX is only used through decodeTagAttributes() calls.
fixTagAttributes() calls decodeTagAttributes(), and would be nastier to
fix, since it is called with HTML parameters (eg. by removeHTMLtags)
but such incorrect parameters grabbed would be removed by validateTagAttributes()
includes/Sanitizer.php
tests/phpunit/includes/SanitizerTest.php