Commit d4f69fa0 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 212856: Request queue doesn't validate email addresses - Patch by Frédéric…

Bug 212856: Request queue doesn't validate email addresses - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=myk
parent 4bf89c1f
...@@ -30,7 +30,7 @@ use strict; ...@@ -30,7 +30,7 @@ use strict;
# Include the Bugzilla CGI and general utility library. # Include the Bugzilla CGI and general utility library.
use lib qw(.); use lib qw(.);
require "globals.pl"; require "globals.pl";
use Bugzilla;
# Use Bugzilla's Request module which contains utilities for handling requests. # Use Bugzilla's Request module which contains utilities for handling requests.
use Bugzilla::Flag; use Bugzilla::Flag;
use Bugzilla::FlagType; use Bugzilla::FlagType;
...@@ -47,6 +47,20 @@ Bugzilla->login(); ...@@ -47,6 +47,20 @@ Bugzilla->login();
# Main Body Execution # Main Body Execution
################################################################################ ################################################################################
my $cgi = Bugzilla->cgi;
my $fields;
$fields->{'requester'}->{'type'} = 'single';
# If the user doesn't restrict his search to requests from the wind
# (requestee ne '-'), include the requestee for completion.
unless (defined $cgi->param('requestee')
&& $cgi->param('requestee') eq '-')
{
$fields->{'requestee'}->{'type'} = 'single';
}
Bugzilla::User::match_field($cgi, $fields);
queue(); queue();
exit; exit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment