diff options
author | lpsolit%gmail.com <> | 2005-08-31 00:01:22 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-08-31 00:01:22 +0000 |
commit | d4f69fa08839a1eef5d4d8bd805d53ef6cdc5dbe (patch) | |
tree | cfa172e6aa6a99c62080cac4a5337bd99b2342f6 | |
parent | 4bf89c1f643b49d4a1716d769718d5b05e106732 (diff) | |
download | bugs-d4f69fa08839a1eef5d4d8bd805d53ef6cdc5dbe.tar bugs-d4f69fa08839a1eef5d4d8bd805d53ef6cdc5dbe.tar.gz bugs-d4f69fa08839a1eef5d4d8bd805d53ef6cdc5dbe.tar.bz2 bugs-d4f69fa08839a1eef5d4d8bd805d53ef6cdc5dbe.tar.xz bugs-d4f69fa08839a1eef5d4d8bd805d53ef6cdc5dbe.zip |
Bug 212856: Request queue doesn't validate email addresses - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=myk
-rwxr-xr-x | request.cgi | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/request.cgi b/request.cgi index a3779bd8d..b0f45b1cc 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; |