]> git.pld-linux.org Git - packages/php.git/blame - php-crypt-bugfix-55439.patch
- fix bug 55439 (crypt() returns only the salt for MD5); release 2
[packages/php.git] / php-crypt-bugfix-55439.patch
CommitLineData
72caf102
AG
1--- PHP_5_3/ext/standard/php_crypt_r.c 2011/08/19 22:45:43 315217
2+++ PHP_5_3/ext/standard/php_crypt_r.c 2011/08/19 22:49:18 315218
3@@ -382,7 +382,7 @@
4 /* Now make the output string */
5 memcpy(passwd, MD5_MAGIC, MD5_MAGIC_LEN);
6 strlcpy(passwd + MD5_MAGIC_LEN, sp, sl + 1);
7- strlcat(passwd, "$", 1);
8+ strcat(passwd, "$");
9
10 PHP_MD5Final(final, &ctx);
11
This page took 0.027248 seconds and 4 git commands to generate.