note 57144 added to function.get-magic-quotes-gpc
| From: | znoob2 at yahoo dot com | Date: | Sun, 25 Sep 2005 08:42:35 +0000 |
| Subject: | note 57144 added to function.get-magic-quotes-gpc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95740@lists.php.net to get a copy of this message | ||
With magic quotes gpc turned on, I found that a filenames that have a single quote in their names
get through only partially.
Eg. I have a file: "evil'file.txt".
$_FILES['file']['name'] returns: "file.txt".
Since the "evil'" part is totally stripped off, there is no way of restoring this. So
watch out.
----
Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57144
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57144&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57144&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57144&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57144&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57144&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57144&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57144&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57144&report=yes
Search -- http://master.php.net/manage/user-notes.php