From: wbudic Date: Wed, 14 Nov 2018 16:09:20 +0000 (+1100) Subject: Fix: search was not lc. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=00b64d2093b5a6c3df7d0f2bfcd2da2a7af740c9;p=LifeLog.git Fix: search was not lc. --- diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index 6feeb6f..6838da7 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -87,7 +87,7 @@ if($rs_keys){ if(@keywords){ foreach (@keywords) { - $stm = $stm . " LOWER(LOG) REGEXP '\\b" .$_."\\b'"; + $stm = $stm . " LOWER(LOG) REGEXP '\\b" . lc $_."\\b'"; if( \$_ != \$keywords[-1] ) { $stm = $stm." OR "; }