note 80431 added to function.preg-replace

From: Date: Tue, 15 Jan 2008 21:53:57 +0000
Subject: note 80431 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-135124@lists.php.net to get a copy of this message
Jacob Fogg's clean_filename function is good, but there is a typo. Replace "\\x00-\\x40" with "\\x00-\\x20" or you will exclude too many characters. Also keep in mind when checking file names to look for the special directory names ".." and ".". A user could potentially use those to reach an unexpected directory. ---- Server IP: 209.41.74.194 Probable Submitter: 66.15.236.210 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/80431 Del: integrated -- https://master.php.net/note/delete/80431/integrated Del: useless -- https://master.php.net/note/delete/80431/useless Del: bad code -- https://master.php.net/note/delete/80431/bad+code Del: spam -- https://master.php.net/note/delete/80431/spam Del: non-english -- https://master.php.net/note/delete/80431/non-english Del: in docs -- https://master.php.net/note/delete/80431/in+docs Del: other reasons-- https://master.php.net/note/delete/80431 Reject -- https://master.php.net/note/reject/80431 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135124) next »