Bug 930013: fall back to the bug's current delta_ts when validating a token if one is not provided to process_bug.cgi

r=dkl,a=glob
4.4
Byron Jones 2013-10-24 13:19:58 +08:00
parent a3f6b40984
commit 3c0fc465c0
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ if ($delta_ts) {
my $token = $cgi->param('token');
if ($cgi->param('id')) {
check_hash_token($token, [$first_bug->id, $delta_ts]);
check_hash_token($token, [$first_bug->id, $delta_ts || $first_bug->delta_ts]);
}
else {
check_token_data($token, 'buglist_mass_change', 'query.cgi');