From db654f60eee16ea5065f1b491ddcc7d74b401531 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Thu, 17 Feb 2005 02:40:12 +0000 Subject: Bug 280495: Replace "REGEXP" with Bugzilla::DB function call Patch By Tomas Kopal r=wurblzap, a=myk --- editusers.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editusers.cgi') diff --git a/editusers.cgi b/editusers.cgi index 5b1f25796..9c8de6164 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -260,7 +260,7 @@ my $action = trim($::FORM{action} || ''); my $localtrailer = 'edit more users'; my $candelete = Param('allowuserdeletion'); - +my $dbh = Bugzilla->dbh; # # action='' -> Ask for match string for users. @@ -302,11 +302,11 @@ if ($action eq 'list') { $query .= "like"; $matchstr = '%' . $matchstr . '%'; } elsif ($::FORM{'matchtype'} eq 'regexp') { - $query .= "regexp"; + $query .= $dbh->sql_regexp(); $matchstr = '.' unless $matchstr; } elsif ($::FORM{'matchtype'} eq 'notregexp') { - $query .= "not regexp"; + $query .= $dbh->sql_not_regexp(); $matchstr = '.' unless $matchstr; } else { -- cgit v1.2.3-24-g4f1b