1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +01:00
This commit is contained in:
Olov Danielson 2010-01-19 12:53:29 +00:00
parent 9bc6b90e45
commit 6ab59bb850

View File

@ -79,7 +79,7 @@ if ($timeout && preg_match("/^[0-9]+$/", $timeout)==0) {
exit;
}
if (preg_match("/^[A-Za-z0-9]+$/", $nonce)==0) {
if ($nonce && preg_match("/^[A-Za-z0-9]+$/", $nonce)==0) {
$myLog->log(LOG_NOTICE, 'NONCE is provided but not correct');
sendResp(S_MISSING_PARAMETER, $apiKey);
exit;