Permalink
Browse files

MDL-12302 stopping filter_save_ignore_tags ignoring empty tags

  • Loading branch information...
1 parent 2692576 commit 6c4ed854f6eddf0ccb0ba655b0ecaf8a4a89c8c3 jmg324 committed Jun 6, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filterlib.php
View
@@ -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) {

0 comments on commit 6c4ed85

Please sign in to comment.