Re: PHP 4.0 Bug #6610 Updated: HTMLSpecialChars parse error
| From: | Jon Ribbens | Date: | Thu, 07 Sep 2000 19:36:19 +0000 |
| Subject: | Re: PHP 4.0 Bug #6610 Updated: HTMLSpecialChars parse error | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-32611@lists.php.net to get a copy of this message | ||
Bug Database <php-dev@lists.php.net> wrote:
> I've verified the following problem (at least it was for me!) in 4.0.2 with
> HTMLSpecialChars():
>
> If parsing a string that contains a single-quote character (the ' character),
> it now translates it to '
Surely it is wrong to remove this feature? You have to encode the "'"
character, because otherwise you will get problems with:
<input type='hidden' name='foo' value='<? echo
htmlspecialchars($foo) ?>'>