Reducing a bit the number of replacements performed by the filter. ;-)

This commit is contained in:
stronk7 2005-04-27 18:34:38 +00:00
parent 9c4d6572a1
commit 902c63b023

View file

@ -191,7 +191,7 @@ function filter_phrases ($text, $link_array, $ignoretagsopen=NULL, $ignoretagscl
} }
$newtagsprefix = (string)(count($newtagsarray) + 1); $newtagsprefix = (string)(count($newtagsarray) + 1);
$newtags = array(); $newtags = array();
preg_match_all('/<(.+?)>/is',$text,$list_of_newtags); preg_match_all('/<[^\#\|\%](.+?)>/is',$text,$list_of_newtags);
foreach (array_unique($list_of_newtags[0]) as $ntkey=>$value) { foreach (array_unique($list_of_newtags[0]) as $ntkey=>$value) {
$newtags['<%'.$newtagsprefix.'.'.$ntkey.'%>'] = $value; $newtags['<%'.$newtagsprefix.'.'.$ntkey.'%>'] = $value;
} }