#18874 [NEW]: Certain Japanese characters break PHP's $_GET and $_POST
| From: | erica at simpli dot biz | Date: | Tue, 13 Aug 2002 04:44:02 +0000 |
| Subject: | #18874 [NEW]: Certain Japanese characters break PHP's $_GET and $_POST | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16569@lists.php.net to get a copy of this message | ||
From: erica@simpli.biz
Operating system: Windows XP
PHP version: 4.1.2
PHP Bug Type: Output Control
Bug description: Certain Japanese characters break PHP's $_GET and $_POST
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 bug report at http://bugs.php.net/?id=18874&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18874&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18874&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18874&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18874&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18874&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18874&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18874&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18874&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18874&r=globals