Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-12302 stopping filter_save_ignore_tags ignoring empty tags

  • Loading branch information...
commit a94592e608838381f09afc4a093b0af783d8d332 1 parent 73f6e22
jmg324 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/filterlib.php
View
2  lib/filterlib.php
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.