uncommenting ISO8859-1 converted password fix
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 4 Jan 2005 10:49:20 +0000 (10:49 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 4 Jan 2005 10:49:20 +0000 (10:49 +0000)
includes/User.php

index faf7ab5..a277239 100644 (file)
@@ -1163,10 +1163,10 @@ 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', $password ) );
                        if ( 0 == strcmp( $cp1252hash, $this->mPassword ) ) {
                                return true;
-                       }*/
+                       }
                }
                return false;
        }