Bug #11664: "Text" in web form interpreted as \"Text\" i.e. \\\"Text\\\"
| From: | mlambert at kodak dot com | Date: | Mon, 25 Jun 2001 13:58:00 +0000 |
| Subject: | Bug #11664: "Text" in web form interpreted as \"Text\" i.e. \\\"Text\\\" | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57967@lists.php.net to get a copy of this message | ||
From: mlambert@kodak.com
Operating system: WinNT 4.0
PHP version: 4.0.6
PHP Bug Type: Scripting Engine problem
Bug description: "Text" in web form interpreted as \"Text\" i.e.
\\\"Text\\\"
Quoted text in Query String e.g "T", passed to form handler as %22T%22, is treated by the
action script as
\"T\" (5 characters) as if the output of
echo \\\"T\\\";
this is different from
rawurldecode("%22T%22");
Repeated SUBMITS (form below) show the problem increasing
<HTML><BODY>
<FORM ACTION="<?php echo $PHP_SELF; ?>" METHOD="get">
<TEXTAREA NAME="c" > <?php echo $c; ?></TEXTAREA><BR>
<INPUT TYPE="SUBMIT" VALUE="SUBMIT"> </CENTER>
</FORM></BODY></HTML>
Results the same for Apache 3.14 and Xitami2.5b4 servers with both self-reference and external
scripts
--
Edit Bug report at: http://bugs.php.net/?id=11664&edit=1