Permalink
Browse files

MDL-12302 stopping filter_save_ignore_tags ignoring empty tags

  • Loading branch information...
1 parent 73f6e22 commit a94592e608838381f09afc4a093b0af783d8d332 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 a94592e

Please sign in to comment.