From 522c301daef5e8bbb643ef11868a9e2b36f6250c Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Fri, 23 Apr 2010 20:33:45 +0000 Subject: [PATCH] Permit somewhat longer nonces (think SHA1 hex). --- ykval-verify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykval-verify.php b/ykval-verify.php index 176e465..7489d9d 100644 --- a/ykval-verify.php +++ b/ykval-verify.php @@ -86,7 +86,7 @@ if ($nonce && preg_match("/^[A-Za-z0-9]+$/", $nonce)==0) { exit; } -if (strlen($nonce) < 16 || strlen($nonce) > 32) { +if (strlen($nonce) < 16 || strlen($nonce) > 40) { $myLog->log(LOG_NOTICE, 'Nonce too short or too long'); sendResp(S_MISSING_PARAMETER, $apiKey, $extra); exit;