From 1db218e9df732c39738a0b92cb9276304008fe74 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Fri, 15 Feb 2008 19:02:39 +0100
Subject: [PATCH] do case insensitive search word highlighting in page FS#1297

darcs-hash:20080215180239-7ad00-2b9e1d5cff75f581a549bc3881a18cfffc53efb5.gz
---
 inc/html.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }
 
-- 
GitLab