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
9e044b55
Commit
9e044b55
authored
Feb 18, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 533018: "Confirm match" displays full email address to logged-out users in request.cgi
r/a=mkanat
parent
56cb0704
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
User.pm
Bugzilla/User.pm
+3
-2
confirm-user-match.html.tmpl
template/en/default/global/confirm-user-match.html.tmpl
+7
-3
No files found.
Bugzilla/User.pm
View file @
9e044b55
...
...
@@ -1066,7 +1066,8 @@ sub match {
# first try wildcards
my
$wildstr
=
$str
;
if
(
$wildstr
=~
s/\*/\%/g
)
{
# don't do wildcards if no '*' in the string
# Do not do wildcards if there is no '*' in the string.
if
(
$wildstr
=~
s/\*/\%/g
&&
$user
->
id
)
{
# Build the query.
trick_taint
(
$wildstr
);
my
$query
=
"SELECT DISTINCT userid FROM profiles "
;
...
...
@@ -1101,7 +1102,7 @@ sub match {
}
# then try substring search
if
(
!
scalar
(
@users
)
&&
length
(
$str
)
>=
3
)
{
if
(
!
scalar
(
@users
)
&&
length
(
$str
)
>=
3
&&
$user
->
id
)
{
trick_taint
(
$str
);
my
$query
=
"SELECT DISTINCT userid FROM profiles "
;
...
...
template/en/default/global/confirm-user-match.html.tmpl
View file @
9e044b55
...
...
@@ -57,7 +57,7 @@
[% IF matchsuccess == 1 %]
[% PROCESS global/header.html.tmpl title="Confirm Match" %]
[% USE Bugzilla %]
[% USE Bugzilla %]
<form method="post"
[% IF script -%]
...
...
@@ -86,9 +86,13 @@
[% PROCESS global/header.html.tmpl title="Match Failed" %]
<p>
[% terms.Bugzilla %] was unable to make any match at all for one or more of
the names and/or email addresses you entered on the previous page.<br>
Please go back and try other names or email addresses.
the names and/or email addresses you entered on the previous page.
[% IF !user.id %]
<b>Note: You are currently logged out. Only exact matches against e-mail
addresses will be performed.</b>
[% END %]
</p>
<p>Please go back and try other names or email addresses.</p>
[% END %]
<table border="0">
...
...
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