r74186 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74185‎ | r74186 | r74187 >
Date:04:31, 3 October 2010
Author:sean_colombo
Status:ok
Tags:
Comment:
Tweak variable name to be camel case (as per feedback on r70849).
Modified paths:
  • /trunk/phase3/includes/Sanitizer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Sanitizer.php
@@ -40,11 +40,11 @@
4141 * Allows some... latitude.
4242 * Used in Sanitizer::fixTagAttributes and Sanitizer::decodeTagAttributes
4343 */
44 -$attrib_first = '[:A-Z_a-z]';
 44+$attribFirst = '[:A-Z_a-z]';
4545 $attrib = '[:A-Z_a-z-.0-9]';
4646 $space = '[\x09\x0a\x0d\x20]';
4747 define( 'MW_ATTRIBS_REGEX',
48 - "/(?:^|$space)({$attrib_first}{$attrib}*)
 48+ "/(?:^|$space)({$attribFirst}{$attrib}*)
4949 ($space*=$space*
5050 (?:
5151 # The attribute value: quoted or alone

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r70849Fix to #17031. See bug ticket for test code & test-results.sean_colombo07:19, 11 August 2010

Status & tagging log