diff options
Diffstat (limited to 'ext/standard/crypt_blowfish.c')
| -rw-r--r-- | ext/standard/crypt_blowfish.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/crypt_blowfish.c b/ext/standard/crypt_blowfish.c index a345fc0d8..c88c699c5 100644 --- a/ext/standard/crypt_blowfish.c +++ b/ext/standard/crypt_blowfish.c @@ -1,5 +1,5 @@ /* - $Id: crypt_blowfish.c 281805 2009-06-08 08:44:15Z pajoye $ + $Id: crypt_blowfish.c 295350 2010-02-22 00:34:22Z pajoye $ */ /* * This code comes from John the Ripper password cracker, with reentrant @@ -606,6 +606,7 @@ char *php_crypt_blowfish_rn(__CONST char *key, __CONST char *setting, setting[3] != '$' || setting[4] < '0' || setting[4] > '3' || setting[5] < '0' || setting[5] > '9' || + (setting[4] == '3' && setting[5] > '1') || setting[6] != '$') { __set_errno(EINVAL); return NULL; |
