Bug #11664 Updated: "Text" in web form interpreted as \"Text\" i.e. \\\"Text\\\"
| From: | zak@php.net | Date: | Tue, 26 Jun 2001 05:58:37 +0000 |
| Subject: | Bug #11664 Updated: "Text" in web form interpreted as \"Text\" i.e. \\\"Text\\\" | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57989@lists.php.net to get a copy of this message | ||
ID: 11664
Updated by: zak
Reported By: mlambert@kodak.com
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating system:
PHP Version: 4.0.6
Assigned To:
Comments:
This is a feature, not a bug. :)
Check out the magic_quote type directives in your php.ini conf file. Also check out the
configuration section and addslashes and stripslashes function writeups in the manual.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-25 09:58:00] mlambert@kodak.com
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11664&edit=2