note 112364 added to security.filesystem.nullbytes

From: Date: Thu, 06 Jun 2013 19:57:45 +0000
Subject: note 112364 added to security.filesystem.nullbytes
Groups: php.notes 
Request: Send a blank email to php-notes+get-195093@lists.php.net to get a copy of this message
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); ?> ---- Server IP: 69.147.83.199 Probable Submitter: 90.5.188.125 ---- Manual Page -- http://php.net/manual/en/security.filesystem.nullbytes.php Edit -- https://master.php.net/note/edit/112364 Del: integrated -- https://master.php.net/note/delete/112364/integrated Del: useless -- https://master.php.net/note/delete/112364/useless Del: bad code -- https://master.php.net/note/delete/112364/bad+code Del: spam -- https://master.php.net/note/delete/112364/spam Del: non-english -- https://master.php.net/note/delete/112364/non-english Del: in docs -- https://master.php.net/note/delete/112364/in+docs Del: other reasons-- https://master.php.net/note/delete/112364 Reject -- https://master.php.net/note/reject/112364 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195093) next »