# HG changeset patch # User Dan # Date 1242046237 14400 # Node ID 3a791f3f4b9129f163e6d9d8dffeb3e8805c08a4 # Parent dd8c53454f3141fe46a5455054f518c5394f0acd Damn it Yubico, you changed your API and broke my code. diff -r dd8c53454f31 -r 3a791f3f4b91 plugins/yubikey/corelib.php --- a/plugins/yubikey/corelib.php Mon May 11 08:50:07 2009 -0400 +++ b/plugins/yubikey/corelib.php Mon May 11 08:50:37 2009 -0400 @@ -201,7 +201,7 @@ $tolerance = intval(getConfig('yubikey_api_ts_tolerance', 150)); $now = time(); - $timestamp = preg_replace('/Z[0-9]{3}$/', '', $timestamp); + $timestamp = preg_replace('/Z[0-9]{3,5}$/', '', $timestamp); $timestamp_seconds = strtotime($timestamp); if ( !$timestamp || !$now )