r11966 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r11965‎ | r11966 | r11967 >
Date:20:43, 4 December 2005
Author:hashar
Status:old
Tags:
Comment:
initialize array before preg_match*
Modified paths:
  • /trunk/phase3/includes/Sanitizer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Sanitizer.php
@@ -532,6 +532,7 @@
533533 # Unquoted attribute
534534 # Since we quote this later, this can be anything distinguishable
535535 # from the end of the attribute
 536+ $pairs = array();
536537 if( !preg_match_all(
537538 MW_ATTRIBS_REGEX,
538539 $text,
@@ -623,7 +624,8 @@
624625 if( trim( $text ) == '' ) {
625626 return $attribs;
626627 }
627 -
 628+
 629+ $pairs = array();
628630 if( !preg_match_all(
629631 MW_ATTRIBS_REGEX,
630632 $text,

Status & tagging log