From 6c4ed854f6eddf0ccb0ba655b0ecaf8a4a89c8c3 Mon Sep 17 00:00:00 2001 From: jmg324 Date: Fri, 6 Jun 2008 09:15:33 +0000 Subject: [PATCH] MDL-12302 stopping filter_save_ignore_tags ignoring empty tags --- lib/filterlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filterlib.php b/lib/filterlib.php index e7eb25d3308..8e10caa7f53 100644 --- a/lib/filterlib.php +++ b/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) {