note 57145 rejected from features.file-upload by jome

From: Date: Sun, 25 Sep 2005 09:31:04 +0000
Subject: note 57145 rejected from features.file-upload by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-95744@lists.php.net to get a copy of this message
Note Submitter: znoob2 at yahoo dot com ---- As brion at pobox dot com points out, you should be very careful with magic quotes and file uploads. I found that with magic quotes gpc turned on, filenames that have a quote in it, get stripped awfully. Eg. Upload the file "evil'text.txt" $_FILES['file']['name'] is "text.txt" Now the filename looks less evil, but php took it, so now php is evil. Watch out, since you'll never be able to get that evil part unless you turn magic quotes gpc off.

« previous php.notes (#95744) next »