1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +01:00

Don't reject on nonce error for v1.x requests.

This commit is contained in:
Simon Josefsson 2010-04-23 21:44:25 +00:00
parent 522c301dae
commit 2f099df58c

View File

@ -86,7 +86,7 @@ if ($nonce && preg_match("/^[A-Za-z0-9]+$/", $nonce)==0) {
exit;
}
if (strlen($nonce) < 16 || strlen($nonce) > 40) {
if ($nonce && (strlen($nonce) < 16 || strlen($nonce) > 40)) {
$myLog->log(LOG_NOTICE, 'Nonce too short or too long');
sendResp(S_MISSING_PARAMETER, $apiKey, $extra);
exit;