Last modified: 2006-10-04 12:15:30 UTC
Test: ----------------------------------------------- curl --silent --include \ --cookie 'wikidb_session=1'\ -F 'wpName'='nickj'\ -F 'wpPassword'='^G'\ 'localhost/wiki/index.php?title=Special:Userlogin&action=submitlogin' ----------------------------------------------- Note: "^G" is the ASCII Bell control character ( http://en.wikipedia.org/wiki/Bell_character ), not the string "^" + "G". Also "nickj" is a valid user name on the test wiki. Output contains this, on a wiki with error_reporting(E_ALL) : ----------------------------------------------- <b>Notice</b>: iconv() [<a href='function.iconv'>function.iconv</a>]: Detected an illegal character in input string in <b>/var/www/hosts/mediawiki/phase3/includes/User.php</b> on line <b>1798</b><br /> ----------------------------------------------- One-line patch will be attached shortly.
Created attachment 2223 [details] Patch to iconv call to convert illegal password chars to nearest legal ones Note for some reason the iconv() "//IGNORE" parameter listed on http://php.net/manual/en/function.iconv.php doesn't stop the error, but "//TRANSLIT" does.
A better test for reproducing this: ----------------------------- echo -e -n '\a' > file.txt curl --silent --include --globoff \ --cookie 'wikidb_session=1' \ -F 'wpName'='nickj' \ -F 'wpPassword'='<file.txt' \ -F 'wpRemember'='1' \ 'localhost/wiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=|' | grep iconv ----------------------------- Note requires error_reporting(E_ALL);
Fixed in r16794.