summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-07-31 20:50:09 +0000
committerPierre Joye <pajoye@php.net>2011-07-31 20:50:09 +0000
commitcaf6a6dc7ac9264bdf3131635b9b57f34ddf4fad (patch)
tree22a514e21c01a90bd352b9b61339396159c8f8e8 /ext
parent673fe19b3972122aec0b0ddacaa1f651ec2a6f28 (diff)
downloadphp-git-caf6a6dc7ac9264bdf3131635b9b57f34ddf4fad.tar.gz
- blowfish 1.2 update, 2nd part
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/crypt.c2
1 files changed, 1 insertions, 1 deletions
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' &&