summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-02-15 19:02:39 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-02-15 19:02:39 +0100
commit1db218e9df732c39738a0b92cb9276304008fe74 (patch)
tree5ccd5e55d489119cb8ed8804ed4a06933d43ec35
parentf93b3b503d8e2938a107d1c12bed1fd65308f933 (diff)
downloadrpg-1db218e9df732c39738a0b92cb9276304008fe74.tar.gz
rpg-1db218e9df732c39738a0b92cb9276304008fe74.tar.bz2
do case insensitive search word highlighting in page FS#1297
darcs-hash:20080215180239-7ad00-2b9e1d5cff75f581a549bc3881a18cfffc53efb5.gz
-rw-r--r--inc/html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 148d111aa..c4c334892 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -267,7 +267,7 @@ function html_hilight($html,$regex){
$regex = preg_replace('![\[\]()/\\\\?\.+*]+!','',$regex);
if ($regex === '') return $html;
- $html = preg_replace_callback("/((<[^>]*)|$regex)/i",'html_hilight_callback',$html);
+ $html = preg_replace_callback("/((<[^>]*)|$regex)/ui",'html_hilight_callback',$html);
return $html;
}