MantisBT: master bd5a685f

Author Committer Branch Timestamp Parent
dregad dregad master 2016-06-11 15:19 master 51f2c782
Affected Issues  0021068: Intermittent "error 2300 token not found"
Changeset

Fix intermittent "error 2300 token not found"

In some rare cases, collapse_cache_token() would attempt to touch a
token that does not exist. This can happen when the current user does
not have any TOKEN_COLLAPSE token, and the MANTIS_collapse_cookie
contains a non-empty value that does not form a valid, colon-delimited
pair.

The issue has been addressed by adding a token_exists() check prior to
calling token_touch().

Fixes 0021068

mod - core/collapse_api.php Diff File