]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 533018: "Confirm match" displays full email address to logged-out users in reques...
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 18 Feb 2010 00:19:45 +0000 (01:19 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 18 Feb 2010 00:19:45 +0000 (01:19 +0100)
r/a=mkanat

Bugzilla/User.pm
template/en/default/global/confirm-user-match.html.tmpl

index 2ae12efcc36c3cba3af5ed79e7d854b6dd268b5e..b55313c6d0b58fafc6d18b55113c40d826d12ab2 100644 (file)
@@ -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))
     {
index 5b209dfce8f558c0b6184fd66ebfebe3bd84b185..52607614c589598e8fbf7e1ea608d92cede66deb 100644 (file)
@@ -41,7 +41,7 @@
 [% IF matchsuccess == 1 %]
   [% PROCESS global/header.html.tmpl title="Confirm Match" %]
 
-[% USE Bugzilla %]
+  [% USE Bugzilla %]
 
   <form method="post" 
   [% IF script -%]
   [% 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">