Re: htmlspecial-chars is NOT binary save
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: htmlspecial-chars is NOT binary save | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-4049@lists.php.net to get a copy of this message | ||
> my mistake, my new oci blob stuff doesn't append a null to the clob
> (character lob), one guy working with it noticed strange things when
> htmlspecialcharing these blobs.....
>
> BTW: should all strings (var->value.str.val) still be zero terminated????
> or is the length in .len the only "of it's kind" (if the later is true
> htmlspecialchars needs the fix)
Yes, they should be null-terminated. There are plenty of functions in
external libraries that expect strings to be null-terminated and it isn't
possible for us to fix all of these libs to be binary-safe.
-Rasmus
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net