initialize array before preg_match*
This commit is contained in:
parent
52c87634f8
commit
a8cc4dc52c
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue