Bug 329334: User::match_field() may redirect you outside your Bugzilla installation - Patch by Fr�d�ric Buclin <LpSolit@gmail.com> r/a=myk

This commit is contained in:
lpsolit%gmail.com 2006-03-11 01:06:41 +00:00
parent 2a9e312db8
commit cd774bba1c

View File

@ -1060,7 +1060,7 @@ sub match_field {
my $template = Bugzilla->template;
my $vars = {};
$vars->{'script'} = $ENV{'SCRIPT_NAME'}; # for self-referencing URLs
$vars->{'script'} = Bugzilla->cgi->url(-relative => 1); # for self-referencing URLs
$vars->{'fields'} = $fields; # fields being matched
$vars->{'matches'} = $matches; # matches that were made
$vars->{'matchsuccess'} = $matchsuccess; # continue or fail