diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-09-17 07:11:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-09-17 07:11:59 +0000 |
commit | 7f29b142770cba60259a22f3760e2376b8e79790 (patch) | |
tree | d9ff4c7dfb29dfafb442c2cd1f2e91b2592e63bc /modules/openid/openid.module | |
parent | 6f8b5f9a5baaea6874ffe050ba0210b680070140 (diff) | |
download | brdo-7f29b142770cba60259a22f3760e2376b8e79790.tar.gz brdo-7f29b142770cba60259a22f3760e2376b8e79790.tar.bz2 |
- Patch #305645 by pwolanin: ['REQUEST_TIME'] -> REQUEST_TIME. Improved developer experience.
Diffstat (limited to 'modules/openid/openid.module')
-rw-r--r-- | modules/openid/openid.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/openid/openid.module b/modules/openid/openid.module index c44d95a1d..fb390a27d 100644 --- a/modules/openid/openid.module +++ b/modules/openid/openid.module @@ -333,7 +333,7 @@ function openid_association($op_endpoint) { module_load_include('inc', 'openid'); // Remove Old Associations: - db_query("DELETE FROM {openid_association} WHERE created + expires_in < %d", $_SERVER['REQUEST_TIME']); + db_query("DELETE FROM {openid_association} WHERE created + expires_in < %d", REQUEST_TIME); // Check to see if we have an association for this IdP already $assoc_handle = db_result(db_query("SELECT assoc_handle FROM {openid_association} WHERE idp_endpoint_uri = '%s'", $op_endpoint)); @@ -367,7 +367,7 @@ function openid_association($op_endpoint) { $assoc_response['mac_key'] = base64_encode(_openid_dh_xorsecret($shared, $enc_mac_key)); } db_query("INSERT INTO {openid_association} (idp_endpoint_uri, session_type, assoc_handle, assoc_type, expires_in, mac_key, created) VALUES('%s', '%s', '%s', '%s', %d, '%s', %d)", - $op_endpoint, $assoc_response['session_type'], $assoc_response['assoc_handle'], $assoc_response['assoc_type'], $assoc_response['expires_in'], $assoc_response['mac_key'], $_SERVER['REQUEST_TIME']); + $op_endpoint, $assoc_response['session_type'], $assoc_response['assoc_handle'], $assoc_response['assoc_type'], $assoc_response['expires_in'], $assoc_response['mac_key'], REQUEST_TIME); $assoc_handle = $assoc_response['assoc_handle']; } |