http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97443
Revision: 97443
Author: laner
Date: 2011-09-18 22:04:38 +0000 (Sun, 18 Sep 2011)
Log Message:
-----------
Adding check for PHP bug 55439
Modified Paths:
--------------
trunk/extensions/LdapAuthentication/LdapAuthentication.php
Modified: trunk/extensions/LdapAuthentication/LdapAuthentication.php
===================================================================
--- trunk/extensions/LdapAuthentication/LdapAuthentication.php 2011-09-18
21:09:34 UTC (rev 97442)
+++ trunk/extensions/LdapAuthentication/LdapAuthentication.php 2011-09-18
22:04:38 UTC (rev 97443)
@@ -1746,6 +1746,10 @@
// Set the password hashing based upon admin preference
switch ( $hashtouse ) {
case 'crypt':
+ // https://bugs.php.net/bug.php?id=55439
+ if ( crypt( 'password', '$1$U7AjYB.O$' ) ==
'$1$U7AjYB.O' ) {
+ die( 'The version of PHP in use has a
broken crypt function. Please upgrade your installation of PHP, or use another
encryption function for LDAP.' );
+ }
$pass = '{CRYPT}' . crypt( $password );
break;
case 'clear':
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs