Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
807d3057
Commit
807d3057
authored
Nov 05, 2002
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 177436 User matching shouldn't be case-sensitive
patch by not_erik 2xr=justdave a=justdave for 2.17.1
parent
ad239c56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
User.pm
Bugzilla/User.pm
+5
-5
No files found.
Bugzilla/User.pm
View file @
807d3057
...
...
@@ -90,7 +90,7 @@ sub match {
return
\
@users
if
$str
=~
/^\s*$/
;
# The search order is wildcards, then exact match, then
INSTR
search.
# The search order is wildcards, then exact match, then
substring
search.
# Wildcard matching is skipped if there is no '*', and exact matches will
# not (?) have a '*' in them. If any search comes up with something, the
# ones following it will not execute.
...
...
@@ -134,19 +134,19 @@ sub match {
&::
PopGlobalSQLState
();
}
# then try
instr
# then try
substring search
if
((
scalar
(
@users
)
==
0
)
&&
(
&::
Param
(
'usermatchmode'
)
eq
'search'
)
&&
(
length
(
$str
)
>=
3
))
{
my
$sqlstr
=
&::
SqlQuote
(
$str
);
my
$sqlstr
=
&::
SqlQuote
(
uc
(
$str
)
);
my
$query
=
"SELECT userid, realname, login_name "
.
"FROM profiles "
.
"WHERE (INSTR(
login_name
, $sqlstr) "
.
"OR INSTR(
realname
, $sqlstr)) "
;
"WHERE (INSTR(
UPPER(login_name)
, $sqlstr) "
.
"OR INSTR(
UPPER(realname)
, $sqlstr)) "
;
$query
.=
"AND disabledtext = '' "
if
$exclude_disabled
;
$query
.=
"ORDER BY length(login_name) "
;
$query
.=
"LIMIT $limit "
if
$limit
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment