Re: [PHP-DEV] Using default_charset for htmlspecialchars() and others

2010-05-03 Thread Lukas Kahwe Smith
On 03.05.2010, at 00:53, Brian Moon wrote: I am not sure if this has been discussed or not. I will gladly make an RFC if not. I think it would be very intuitive if htmlspecialchars used the ini value default_charset as its default. And any function that takes an optional character set.

Re: [PHP-DEV] Using default_charset for htmlspecialchars() and others

2010-05-03 Thread Moriyoshi Koizumi
Hi, I am under the impression that we have to provide an alternative to htmlspecialchars() that incorporates the following ideas: - Shorter function name html_escape() for example. _h() would be much more preferable in terms of preventing XSS ;-p - Using default_charset as the default encoding

[PHP-DEV] Using default_charset for htmlspecialchars() and others

2010-05-02 Thread Brian Moon
I am not sure if this has been discussed or not. I will gladly make an RFC if not. I think it would be very intuitive if htmlspecialchars used the ini value default_charset as its default. And any function that takes an optional character set. A) Has this been discussed? B) If not, do others