Permalink
Browse files

MDL-18302 filterlib - fixed rebuild of nested ignoretags

  • Loading branch information...
1 parent 1c86f1b commit 2a2124087f444c898392ed4d86755eb9870f0f49 stronk7 committed Feb 18, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/filterlib.php
View
@@ -233,6 +233,7 @@ function filter_phrases ($text, &$link_array, $ignoretagsopen=NULL, $ignoretagsc
}
if (!empty($ignoretags)) {
+ $ignoretags = array_reverse($ignoretags); /// Reversed so "progressive" str_replace() will solve some nesting problems.
$text = str_replace(array_keys($ignoretags),$ignoretags,$text);
}

0 comments on commit 2a21240

Please sign in to comment.