Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
From: rasmus@php.net Date: Sat, 05 Jan 2013 04:40:26 +0000 Subject: Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-175749@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61354&edit=1
ID: 61354
Updated by: rasmus@php.net
Reported by: hufeng1987 at gmail dot com
Summary: htmlentities and htmlspecialchars doesn't respect
the default_charset
Status: Not a bug
Type: Bug
Package: Strings related
Operating System: Linux/Windows/
PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
Code that is currently likely to be insecure, yes. We only make changes like this
when we are forced to for security reasons.
Previous Comments:
------------------------------------------------------------------------
[2013-01-05 04:26:39] hufeng1987 at gmail dot com
you made one step, but kill the php programmer.
do you know how much more code need to rewrite and check?
if your change broken user programm, it's your lost, not the user's lost.
------------------------------------------------------------------------
[2013-01-05 04:20:02] rasmus@php.net
You will need to update your code to be compatible with PHP 5.4 either by
explicitly providing the charset, or by passing in "" to pick up the default one.
Anything short of that is a security issue. Code that didn't do this in PHP 5.3
is potentially insecure depending on which charset is being used, so no, nothing
will be fixed here. We will not revert to 5.3 behaviour.
------------------------------------------------------------------------
[2013-01-05 03:55:08] hufeng1987 at gmail dot com
Please fix it as soon as possible.
------------------------------------------------------------------------
[2013-01-05 03:53:35] leaflet at leafok dot com
I am facing the same problem.
After upgrading to PHP 5.4.10 in the product environment, all the GB2312 encoding data on the page
became blank. This badly influenced the whole site.
It is undoubtedly a backward compatible issue. Wish it could be resolved soon.
------------------------------------------------------------------------
[2012-12-28 17:36:29] rudibr at gmail dot com
This is a serious backward incompatibility (and not even listed as such).
I am also not able to upgrade to 5.4 because of this, and have advised all of my
clients which I provide server consulting to do not upgrade as well.
No defaults of any kind should be changed arbitrarily , without notice and
without
possibility of customization. It breaks code, and makes everyone affected very
uneasy on any future relases.
Like all here I hope this get the serious attention it should have gotten
already.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=61354
--
Edit this bug report at https://bugs.php.net/bug.php?id=61354&edit=1
Thread (44 messages)
- Bug #61354 [Opn->Ver]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Ver->Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Nab]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
- Bug #61354 [Com]: htmlentities and htmlspecialchars doesn't respect the default_charset
| « previous | php.bugs (#175749) | next » |
|---|