From: Antoine Musso Date: Sun, 4 Dec 2005 20:43:42 +0000 (+0000) Subject: initialize array before preg_match* X-Git-Tag: 1.6.0~1022 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=a8cc4dc52cb73cea3553b53cd0ff426fe272da28;p=lhc%2Fweb%2Fwiklou.git initialize array before preg_match* --- diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index ef92e28db3..c4f6a70bb4 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -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,