From caf6a6dc7ac9264bdf3131635b9b57f34ddf4fad Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 31 Jul 2011 20:50:09 +0000 Subject: [PATCH] - blowfish 1.2 update, 2nd part --- ext/standard/crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index efccd25b8e..181a4d4931 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -242,7 +242,7 @@ PHP_FUNCTION(crypt) } else if ( salt[0] == '$' && salt[1] == '2' && - salt[2] == 'a' && + salt[2] >= 'a' && salt[2] <= 'z' && salt[3] == '$' && salt[4] >= '0' && salt[4] <= '3' && salt[5] >= '0' && salt[5] <= '9' && -- 2.50.1