MDL-12302 stopping filter_save_ignore_tags ignoring empty tags

This commit is contained in:
jmg324 2008-06-06 09:15:33 +00:00
parent 26925762b8
commit 6c4ed854f6

View File

@ -287,7 +287,7 @@ function filter_save_ignore_tags(&$text,$filterignoretagsopen,$filterignoretagsc
/// form regular expression
$opentag = str_replace('/','\/',$opentag); // delimit forward slashes
$closetag = str_replace('/','\/',$closetag); // delimit forward slashes
$pregexp = '/'.$opentag.'(.+?)'.$closetag.'/is';
$pregexp = '/'.$opentag.'(.*?)'.$closetag.'/is';
preg_match_all($pregexp, $text, $list_of_ignores);
foreach (array_unique($list_of_ignores[0]) as $key=>$value) {