diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-09-06 08:36:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-09-06 08:36:22 +0000 |
commit | e5b0e5f76c0695a01d13c55147a8287df8750594 (patch) | |
tree | d4acfc3f1d038bccaea83e168fdd380d0dfa0708 /modules/user/user.pages.inc | |
parent | cbb639a16ffec82f498ae689818b010e040bf5b4 (diff) | |
download | brdo-e5b0e5f76c0695a01d13c55147a8287df8750594.tar.gz brdo-e5b0e5f76c0695a01d13c55147a8287df8750594.tar.bz2 |
- Patch #302763 by Dave Reid, Rob Loach: replace time() by ['REQUEST_TIME'] as per Rasmus' suggestion. Removed drupal_referrer() for consistency.
Diffstat (limited to 'modules/user/user.pages.inc')
-rw-r--r-- | modules/user/user.pages.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc index df0c37fcc..be757643b 100644 --- a/modules/user/user.pages.inc +++ b/modules/user/user.pages.inc @@ -84,7 +84,7 @@ function user_pass_reset(&$form_state, $uid, $timestamp, $hashed_pass, $action = else { // Time out, in seconds, until login URL expires. 24 hours = 86400 seconds. $timeout = 86400; - $current = time(); + $current = $_SERVER['REQUEST_TIME']; // Some redundant checks for extra security ? if ($timestamp < $current && $account = user_load(array('uid' => $uid, 'status' => 1)) ) { // No time out for first time login. |