]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 212856: Request queue doesn't validate email addresses - Patch by Frédéric Buclin...
authorlpsolit%gmail.com <>
Wed, 31 Aug 2005 00:01:22 +0000 (00:01 +0000)
committerlpsolit%gmail.com <>
Wed, 31 Aug 2005 00:01:22 +0000 (00:01 +0000)
request.cgi

index a3779bd8dcf43caed333b61cb6162501843c4792..b0f45b1cccab27efd719f429a9c880fb72098602 100755 (executable)
@@ -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;