Escape some concept strings that can cause trouble in eregi

This commit is contained in:
moodler
2004-03-31 07:46:59 +00:00
parent ed151929e3
commit 4da52954df
+4
View File
@@ -170,7 +170,11 @@
$text = str_replace($final,array_keys($final),$text);
$list_of_words_cp = str_replace('{', '\{', $list_of_words_cp);
$list_of_words_cp = str_replace('+', '\+', $list_of_words_cp);
$list_of_words_cp = "(".$list_of_words_cp.")";
if ( $casesensitive ) {
$text = ereg_replace("$list_of_words_cp", "$href_tag_begin"."\\1"."$href_tag_end", $text);
} else {