diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-02-15 19:02:39 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-02-15 19:02:39 +0100 |
commit | 1db218e9df732c39738a0b92cb9276304008fe74 (patch) | |
tree | 5ccd5e55d489119cb8ed8804ed4a06933d43ec35 | |
parent | f93b3b503d8e2938a107d1c12bed1fd65308f933 (diff) | |
download | rpg-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.php | 2 |
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; } |