(Bug 7004) PHP iconv() notice on bad password input to Special:Userlogin, with E_ALL...
authorNick Jenkins <nickj@users.mediawiki.org>
Wed, 4 Oct 2006 12:13:22 +0000 (12:13 +0000)
committerNick Jenkins <nickj@users.mediawiki.org>
Wed, 4 Oct 2006 12:13:22 +0000 (12:13 +0000)
RELEASE-NOTES
includes/User.php

index 58cbf4a..ffa6197 100644 (file)
@@ -263,6 +263,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   due to negative LIMIT clause, caused by integer wraparound.
 * Fixed various bugs related to table prefixes, especially the interaction
   between table prefixes and memcached, which was formerly completely broken.
+* (bug 7004) PHP iconv() notice on bad password input to Special:Userlogin.
 
 
 == Languages updated ==
index 6df9e0c..f6567b9 100644 (file)
@@ -1868,7 +1868,7 @@ class User {
                } elseif ( function_exists( 'iconv' ) ) {
                        # Some wikis were converted from ISO 8859-1 to UTF-8, the passwords can't be converted
                        # Check for this with iconv
-                       $cp1252hash = $this->encryptPassword( iconv( 'UTF-8', 'WINDOWS-1252', $password ) );
+                       $cp1252hash = $this->encryptPassword( iconv( 'UTF-8', 'WINDOWS-1252//TRANSLIT', $password ) );
                        if ( 0 == strcmp( $cp1252hash, $this->mPassword ) ) {
                                return true;
                        }