From 0ec918604a9082170ee1dc81907d86a479dac1b2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 9 Jul 2008 17:50:11 -0400 Subject: [PATCH] ignore case when highlighting darcs-hash:20080709215011-84dde-29c80d3210e337614980b647c58b5720b7bfc35f.gz --- actions/peoplesearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php index a4e9308cf6..cf79e52e98 100644 --- a/actions/peoplesearch.php +++ b/actions/peoplesearch.php @@ -132,7 +132,7 @@ class PeoplesearchAction extends Action { } function highlight($text, $terms) { - $pattern = '/('.implode('|',array_map('htmlspecialchars', $terms)).')/'; + $pattern = '/('.implode('|',array_map('htmlspecialchars', $terms)).')/i'; $result = preg_replace($pattern, '\\1', $text); return $result; } -- 2.39.5