- Fix error with SpamCop reporting plugin not being able to send report as
emails (#1795310).
- Fix typo in SpamCop plugin.
+ - Reduced default time security tokens stay valid from 30 days to 2 days
+ (reduces chances of session data growing too large)
Version 1.5.1 (branched on 2006-02-12)
--------------------------------------
*
* @param boolean $purge_old Indicates if old tokens
* should be purged from the
- * list ("old" is 30 days or
+ * list ("old" is 2 days or
* older unless the administrator
* overrides that value using
* $max_security_token_age in
//
if ($purge_old)
{
- if (empty($max_token_age_days)) $max_token_age_days = 30;
+ if (empty($max_token_age_days)) $max_token_age_days = 2;
$now = time();
$discard_token_date = $now - ($max_token_age_days * 86400);
$cleaned_tokens = array();
* from the user's preferences if it was valid. If the token
* is too old but otherwise valid, it will still be rejected.
*
- * "Too old" is 30 days or older unless the administrator
+ * "Too old" is 2 days or older unless the administrator
* overrides that value using $max_security_token_age in
* config/config_local.php
*
// reject tokens that are too old
//
- if (empty($max_token_age_days)) $max_token_age_days = 30;
+ if (empty($max_token_age_days)) $max_token_age_days = 2;
$old_token_date = $now - ($max_token_age_days * 86400);
if ($timestamp < $old_token_date)
{