Skip to content
Permalink
Browse files

Fixed regular expression - Bug 2756 (SE)

  • Loading branch information...
moodler
moodler committed Mar 19, 2005
1 parent de680e7 commit 4161807b815dd16763591431e5bc9251b5bfe1f4
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/filterlib.php
@@ -85,7 +85,7 @@ function filter_phrases ($text, $link_array, $ignoretagsopen=NULL, $ignoretagscl
/// Remove tags from $text
$tags = array();
preg_match_all('/<[^\#](.+?)[^\#]>/is',$text,$list_of_tags);
preg_match_all('/<[^\#](.*?)>/is',$text,$list_of_tags);
foreach (array_unique($list_of_tags[0]) as $key=>$value) {
$tags['<|'.$key.'|>'] = $value;
}
@@ -96,7 +96,7 @@ function filter_phrases ($text, $link_array, $ignoretagsopen=NULL, $ignoretagscl
/// Time to cycle through each phrase to be linked
foreach ($link_array as $linkobject) {
/// Set some defaults if certain properties are missing
/// Properties may be missing if the filterobject class has not been used to construct the object
if (!isset($linkobject->phrase)) {
@@ -174,7 +174,7 @@ function filter_phrases ($text, $link_array, $ignoretagsopen=NULL, $ignoretagscl
$newtagsarray[] = $newtags;
}
unset($newtags);
}

0 comments on commit 4161807

Please sign in to comment.
You can’t perform that action at this time.