From: Sean Colombo Date: Sat, 19 Feb 2011 19:25:26 +0000 (+0000) Subject: Relaxed the allowed format of parser tag attributes as per bug 27539. One side-effect... X-Git-Tag: 1.31.0-rc.0~31884 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=626724ab4cef8ff4cd25e63d8dca3d08c37a726f;p=lhc%2Fweb%2Fwiklou.git Relaxed the allowed format of parser tag attributes as per bug 27539. One side-effect is that this will fix the widely-used pagelist tag which has "1to10" as an attribute name. --- diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 9585f9a68d..9a64e2cdf7 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -39,7 +39,7 @@ define( 'MW_CHAR_REFS_REGEX', * Allows some... latitude. * Used in Sanitizer::fixTagAttributes and Sanitizer::decodeTagAttributes */ -$attribFirst = '[:A-Z_a-z]'; +$attribFirst = '[:A-Z_a-z-.0-9]'; // more lenient than standards (by allowing [-.0-9]) $attrib = '[:A-Z_a-z-.0-9]'; $space = '[\x09\x0a\x0d\x20]'; define( 'MW_ATTRIBS_REGEX',