Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
4201773c
Unverified
Commit
4201773c
authored
Dec 08, 2018
by
IKEDA Soji
Committed by
GitHub
Dec 08, 2018
Browse files
Merge pull request #488 from racke/pr/salt-warnings by racke
Prevent warning on undefined salt variable.
parents
b69f3ac4
71ec6da1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/User.pm
View file @
4201773c
...
...
@@ -309,6 +309,8 @@ my %fingerprint_hashes = (
'
md5
'
=>
sub
{
my
(
$pwd
,
$salt
)
=
@_
;
$salt
=
''
unless
defined
$salt
;
# salt parameter is not used for MD5 hashes
my
$fingerprint
=
Digest::MD5::
md5_hex
(
$pwd
);
my
$match
=
(
$fingerprint
eq
$salt
)
?
"
yes
"
:
"
no
";
...
...
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