diff options
author | Dylan William Hardison <dylan@mozilla.com> | 2014-12-15 03:09:41 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-12-15 03:09:58 +0100 |
commit | 9addfeb1a4e9d68e19620e3c60ab4f9af7380c38 (patch) | |
tree | 54b3a1df1336e7f6f1b48c6036420a6ec8602f57 /extensions/BMO/Extension.pm | |
parent | 0cd42fd71007724425c07acf2f7af6c410d7dc47 (diff) | |
download | bugzilla-9addfeb1a4e9d68e19620e3c60ab4f9af7380c38.tar.gz bugzilla-9addfeb1a4e9d68e19620e3c60ab4f9af7380c38.tar.xz |
Bug 1105585: Fix bug bounty form to validate its input more and relax the restriction on the paid field to include -+? suffix
Diffstat (limited to 'extensions/BMO/Extension.pm')
-rw-r--r-- | extensions/BMO/Extension.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 321cdb29e..e776b320b 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -274,11 +274,11 @@ sub parse_bounty_attachment_description { my $date = qr/\d{4}-\d{2}-\d{2}/; $desc =~ m! ^ - (?<reporter_email> [^,]+) \s*,\s* - (?<amount_paid> [0-9]+) ? \s*,\s* - (?<reported_date> $date) ? \s*,\s* - (?<fixed_date> $date) ? \s*,\s* - (?<awarded_date> $date) ? \s*,\s* + (?<reporter_email> [^,]+) \s*,\s* + (?<amount_paid> [0-9]+[-+?]?) ? \s*,\s* + (?<reported_date> $date) ? \s*,\s* + (?<fixed_date> $date) ? \s*,\s* + (?<awarded_date> $date) ? \s*,\s* (?<publish> (?i: true | false )) ? (?: \s*,\s* (?<credits>.*) ) ? $ |