PHP 4.0 Bug #7128: Decoding of form variables
| From: | users at freesurf dot ch | Date: | Wed, 11 Oct 2000 05:50:42 +0000 |
| Subject: | PHP 4.0 Bug #7128: Decoding of form variables | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34634@lists.php.net to get a copy of this message | ||
From: users@freesurf.ch
Operating system: WIN98
PHP version: 4.0.2
PHP Bug Type: PWS related
Bug description: Decoding of form variables
When receving values from a form text field such as
<INPUT name="hugo" type="text">
any entered ['] is preceedet with an [\] in the variable $hugo. Thus:
[it's a shame] becomes "it\'s a shame".
1. I don't see any reason for it.
2. I tried to solve the problem using preg_replace:
preg_replace('~\/\'~','\'',$hugo);
...without any effect.
preg_replace('~\134\'~','/',$hugo);
indeed works fine! An error?!
--
Edit Bug report at: http://bugs.php.net/?id=7128&edit=1