#18874 [Com]: Certain Japanese characters break PHP's $_GET and $_POST

From: Date: Tue, 13 Aug 2002 06:07:14 +0000
Subject: #18874 [Com]: Certain Japanese characters break PHP's $_GET and $_POST
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16578@lists.php.net to get a copy of this message
ID: 18874 Comment by: erica@simpli.biz Reported By: erica@simpli.biz Status: Feedback Bug Type: Output Control Operating System: Windows XP PHP Version: 4.1.2 New Comment: Still a bug in a fresh compile of 4.2.2 (on a friend's system.) His phpinfo(): http://redline.worldforge.org/en/info.php The script: http://redline.worldforge.org/hottie/contact2.php Thanks. Previous Comments: ------------------------------------------------------------------------ [2002-08-13 01:05:28] kalowsky@php.net Does this still happen with a newer version of PHP? ------------------------------------------------------------------------ [2002-08-13 00:44:01] erica@simpli.biz I've put an example script here: http://clients.simpli.biz/contact.php and the .phps is http://clients.simpli.biz/contact.phps Basically, there is a specific Japanese character that translates to a [ in ASCII. Since this character contains a [, PHP treats this as the beginning of an array, and since it sees no ending delimiter, it ignores that form field. Any form input with that character then becomes broken in PHP. Since it is a fairly common character, this has a large impact. Go to the script above and change your character encoding, and you'll see exactly what I mean. When you hit Submit, the script just prints out all submitted variables. Any form inputs with a name containing that character do not submit at all. Thanks, Erica (SlashChick on irc.openprojects.net #php) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18874&edit=1

« previous php.bugs (#16578) next »