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 @@
533
533
# Unquoted attribute
534
534
# Since we quote this later, this can be anything distinguishable
535
535
# from the end of the attribute
536
+ $pairs = array();
536
537
if( !preg_match_all(
537
538
MW_ATTRIBS_REGEX,
538
539
$text,
—
—
@@ -623,7 +624,8 @@
624
625
if( trim( $text ) == '' ) {
625
626
return $attribs;
626
627
}
627
-
628
+
629
+ $pairs = array();
628
630
if( !preg_match_all(
629
631
MW_ATTRIBS_REGEX,
630
632
$text,
Status & tagging log
01:58, 13 October 2010
😂
(
talk
|
contribs
)
changed the
status
of r11966
[
removed:
new
added:
old]