Re: [PATCH] Bug #43896 htmlspecialchars returns empty string on invalid unicode sequence
| From: | Tomas Kuliavas | Date: | Sun, 27 Jan 2008 06:05:38 +0000 |
| Subject: | Re: [PATCH] Bug #43896 htmlspecialchars returns empty string on invalid unicode sequence | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34953@lists.php.net to get a copy of this message | ||
>> Instead of using simple sanitizing function users are forced to check
>> for errors. How good is that? It makes code complex or unreliable.
>
> Explain me again how checking for errors makes code unreliable?
OR unreliable. If you check for errors, sanitizing code is complex. If you
don't check and expect it to work, code can cause data loss (is
unreliable).
--
Tomas