From: lpsolit%gmail.com <> Date: Wed, 31 Aug 2005 00:01:22 +0000 (+0000) Subject: Bug 212856: Request queue doesn't validate email addresses - Patch by Frédéric Buclin... X-Git-Tag: bugzilla-2.21.1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f69fa08839a1eef5d4d8bd805d53ef6cdc5dbe;p=thirdparty%2Fbugzilla.git Bug 212856: Request queue doesn't validate email addresses - Patch by Frédéric Buclin r=joel a=myk --- diff --git a/request.cgi b/request.cgi index a3779bd8dc..b0f45b1ccc 100755 --- a/request.cgi +++ b/request.cgi @@ -30,7 +30,7 @@ use strict; # Include the Bugzilla CGI and general utility library. use lib qw(.); require "globals.pl"; - +use Bugzilla; # Use Bugzilla's Request module which contains utilities for handling requests. use Bugzilla::Flag; use Bugzilla::FlagType; @@ -47,6 +47,20 @@ Bugzilla->login(); # 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(); exit;