From: Frédéric Buclin Date: Thu, 18 Feb 2010 00:19:45 +0000 (+0100) Subject: Bug 533018: "Confirm match" displays full email address to logged-out users in reques... X-Git-Tag: bugzilla-3.4.6~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef95d5ceeec1654f5fe685b4e2c9636fa30dd4f2;p=thirdparty%2Fbugzilla.git Bug 533018: "Confirm match" displays full email address to logged-out users in request.cgi r/a=mkanat --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 2ae12efcc3..b55313c6d0 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1026,6 +1026,7 @@ sub match { my $wildstr = $str; if ($wildstr =~ s/\*/\%/g # don't do wildcards if no '*' in the string + && $user->id # or if we only want exact matches && Bugzilla->params->{'usermatchmode'} ne 'off') { @@ -1068,6 +1069,7 @@ sub match { # then try substring search if ((scalar(@users) == 0) + && $user->id && (Bugzilla->params->{'usermatchmode'} eq 'search') && (length($str) >= 3)) { diff --git a/template/en/default/global/confirm-user-match.html.tmpl b/template/en/default/global/confirm-user-match.html.tmpl index 5b209dfce8..52607614c5 100644 --- a/template/en/default/global/confirm-user-match.html.tmpl +++ b/template/en/default/global/confirm-user-match.html.tmpl @@ -41,7 +41,7 @@ [% IF matchsuccess == 1 %] [% PROCESS global/header.html.tmpl title="Confirm Match" %] -[% USE Bugzilla %] + [% USE Bugzilla %]
[% 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.
- 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 %] + Note: You are currently logged out. Only exact matches against e-mail + addresses will be performed. + [% END %]

+

Please go back and try other names or email addresses.

[% END %]