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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
34673924
Unverified
Commit
34673924
authored
Aug 29, 2024
by
Dave Miller
Committed by
GitHub
Aug 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1813629: Prevent Auth plugins from authenticating usernames with unicode variants
Co-authored-by:
David Lawrence
<
dkl@mozilla.com
>
parent
5af7bc0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
User.pm
Bugzilla/User.pm
+13
-1
No files found.
Bugzilla/User.pm
View file @
34673924
...
@@ -136,7 +136,19 @@ sub new {
...
@@ -136,7 +136,19 @@ sub new {
$_
[
0
]
=
$param
;
$_
[
0
]
=
$param
;
}
}
}
}
return
$class
->
SUPER::
new
(
@_
);
$user
=
$class
->
SUPER::
new
(
@_
);
# MySQL considers some non-ascii characters such as umlauts to equal
# ascii characters returning a user when it should not.
if
(
$user
&&
ref
$param
eq
'HASH'
&&
exists
$param
->
{
name
})
{
my
$login
=
$param
->
{
name
};
if
(
lc
$login
ne
lc
$user
->
login
)
{
$user
=
undef
;
}
}
return
$user
;
}
}
sub
super_user
{
sub
super_user
{
...
...
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