html_entity_decode converts single quotes even if ENT_NOQUOTES is given
| Bug #32608 | html_entity_decode converts single quotes even if ENT_NOQUOTES is given | ||||
|---|---|---|---|---|---|
| Submitted: | 2005-04-06 16:32 UTC | Modified: | 2005-05-03 03:11 UTC | ||
| From: | ladislav dot prosek at matfyz dot cz | Assigned: | |||
| Status: | Closed | Package: | Strings related | ||
| PHP Version: | 5CVS-2005-04-07 | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
[2005-04-06 16:32 UTC] ladislav dot prosek at matfyz dot cz
Description:
------------
html_entity_decode seems to convert single quotes (' and ') regardless of the quote_style parameter.
Reproduce code:
---------------
echo html_entity_decode("'", ENT_NOQUOTES);
Expected result:
----------------
'
Actual result:
--------------
'
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-04-08 00:14 UTC] sniper@php.net
[2005-05-03 03:11 UTC] iliaa@php.net