note 112364 deleted from security.filesystem.nullbytes by googleguy
| From: | googleguy@php.net | Date: | Fri, 07 Jun 2013 00:42:21 +0000 |
| Subject: | note 112364 deleted from security.filesystem.nullbytes by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-195095@lists.php.net to get a copy of this message | ||
Note Submitter: gb dot michel {at} esecurite (d0t) fr
----
Easy way to remove NULL byte from a string is to use str_replace() and chr().
Example :
<?php
$clean_val = str_replace( chr(0), '', $raw_val);
?>