Révision b720ea3e
Ajouté par Assos Assos il y a plus de 8 ans
drupal7/sites/all/modules/honeypot/honeypot.module | ||
---|---|---|
233 | 233 |
|
234 | 234 |
// Disable page caching to make sure timestamp isn't cached. |
235 | 235 |
if (user_is_anonymous()) { |
236 |
$GLOBALS['conf']['cache'] = 0;
|
|
236 |
drupal_page_is_cacheable(FALSE);
|
|
237 | 237 |
} |
238 | 238 |
} |
239 | 239 |
|
... | ... | |
447 | 447 |
function honeypot_get_time_from_signed_timestamp($signed_timestamp) { |
448 | 448 |
$honeypot_time = 0; |
449 | 449 |
|
450 |
// Fail fast if timestamp was forged or saved with an older Honeypot version. |
|
451 |
if (strpos($signed_timestamp, '|') === FALSE) { |
|
452 |
return $honeypot_time; |
|
453 |
} |
|
454 |
|
|
450 | 455 |
list($timestamp, $received_hmac) = explode('|', $signed_timestamp); |
451 | 456 |
|
452 | 457 |
if ($timestamp && $received_hmac) { |
Formats disponibles : Unified diff
Weekly update of contrib modules