initialize array before preg_match*

This commit is contained in:
Antoine Musso 2005-12-04 20:43:42 +00:00
parent 52c87634f8
commit a8cc4dc52c

View file

@ -532,6 +532,7 @@ class Sanitizer {
# Unquoted attribute
# Since we quote this later, this can be anything distinguishable
# from the end of the attribute
$pairs = array();
if( !preg_match_all(
MW_ATTRIBS_REGEX,
$text,
@ -623,7 +624,8 @@ class Sanitizer {
if( trim( $text ) == '' ) {
return $attribs;
}
$pairs = array();
if( !preg_match_all(
MW_ATTRIBS_REGEX,
$text,