# HG changeset patch # User Dan # Date 1242512685 14400 # Node ID 9b8688df52d5c2dbf4407f8db1d4e61078689a7e # Parent f34ecfa459abe51322d89403ce53b84aa2c0e785 Fixed no tolerance for missing Z in response timestamp diff -r f34ecfa459ab -r 9b8688df52d5 plugins/yubikey/corelib.php --- a/plugins/yubikey/corelib.php Sat May 16 18:17:09 2009 -0400 +++ b/plugins/yubikey/corelib.php Sat May 16 18:24:45 2009 -0400 @@ -218,7 +218,7 @@ function yk_strtotime($timestamp) { - if ( !preg_match('/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z[0-9]+)$/', $timestamp, $match) ) + if ( !preg_match('/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z[0-9]+)?$/', $timestamp, $match) ) return 0; $hour = intval($match[4]);