Page MenuHomePhabricator

iconv-notice-bug-7004-diff.txt

Authored By
bzimport
Nov 21 2014, 9:22 PM
Size
738 B
Referenced Files
None
Subscribers
None

iconv-notice-bug-7004-diff.txt

Index: /var/www/hosts/mediawiki/phase3/includes/User.php
===================================================================
--- /var/www/hosts/mediawiki/phase3/includes/User.php (revision 16049)
+++ /var/www/hosts/mediawiki/phase3/includes/User.php (working copy)
@@ -1795,7 +1795,7 @@
} 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;
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698
Default Alt Text
iconv-notice-bug-7004-diff.txt (738 B)

Event Timeline