diff options
author | mkanat%kerio.com <> | 2005-02-17 03:40:12 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-17 03:40:12 +0100 |
commit | db654f60eee16ea5065f1b491ddcc7d74b401531 (patch) | |
tree | 570b970b539ee1aedb45a54cfe5d7c1d270a957c /editusers.cgi | |
parent | 62b2ec349b01a454420eaadd22caad929521a76e (diff) | |
download | bugzilla-db654f60eee16ea5065f1b491ddcc7d74b401531.tar.gz bugzilla-db654f60eee16ea5065f1b491ddcc7d74b401531.tar.xz |
Bug 280495: Replace "REGEXP" with Bugzilla::DB function call
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=wurblzap, a=myk
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
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 = '<a href="editusers.cgi?">edit more users</a>'; 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 { |