]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 927736: "invalid token" error if someone else changes the CC list while viewing... bugzilla-4.5.1 release-4.5.1
authorByron Jones <glob@mozilla.com>
Thu, 17 Oct 2013 10:28:16 +0000 (12:28 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 17 Oct 2013 10:28:16 +0000 (12:28 +0200)
r/a=LpSolit

process_bug.cgi

index 19880fe7dd39b50c30f16e0bd43b02c14e762062..2bcfca6d5129066a0cb55157fdcdf2863ce72d22 100755 (executable)
@@ -111,7 +111,7 @@ print $cgi->header() unless Bugzilla->usage_mode == USAGE_MODE_EMAIL;
 
 # Check for a mid-air collision. Currently this only works when updating
 # an individual bug.
-my $delta_ts = $cgi->param('delta_ts');
+my $delta_ts = $cgi->param('delta_ts') || '';
 
 if ($delta_ts) {
     my $delta_ts_z = datetime_from($delta_ts)
@@ -167,7 +167,7 @@ if ($delta_ts) {
 my $token = $cgi->param('token');
 
 if ($cgi->param('id')) {
-    check_hash_token($token, [$first_bug->id, $first_bug->delta_ts]);
+    check_hash_token($token, [$first_bug->id, $delta_ts]);
 }
 else {
     check_token_data($token, 'buglist_mass_change', 'query.cgi');