mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-12302 stopping filter_save_ignore_tags ignoring empty tags
This commit is contained in:
parent
26925762b8
commit
6c4ed854f6
@ -287,7 +287,7 @@ function filter_save_ignore_tags(&$text,$filterignoretagsopen,$filterignoretagsc
|
|||||||
/// form regular expression
|
/// form regular expression
|
||||||
$opentag = str_replace('/','\/',$opentag); // delimit forward slashes
|
$opentag = str_replace('/','\/',$opentag); // delimit forward slashes
|
||||||
$closetag = str_replace('/','\/',$closetag); // 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);
|
preg_match_all($pregexp, $text, $list_of_ignores);
|
||||||
foreach (array_unique($list_of_ignores[0]) as $key=>$value) {
|
foreach (array_unique($list_of_ignores[0]) as $key=>$value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user