Re: uploading files with a single quote in the filename
| From: | Jochem Maas | Date: | Wed, 23 Feb 2005 12:59:06 +0000 |
| Subject: | Re: uploading files with a single quote in the filename | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209233@lists.php.net to get a copy of this message | ||
neil@jansons.net wrote:
Hi When uploading files using a type=file in a form, if a file is uploaded with a single quote the file gets truncated to whatever is after the quote eg. blah'sblah.txt will be uploaded as sblah.txt Is this a magic quotes issue?I don't think so, test it by turning it on/off.
What is the best way to deal with it?couple of questions: 1. are single quotes really necessary in filenames? 2. is the original filename really that important to you? 3. does this happen on just one browser/[client]platform? it could be a browser bug (i.e. it gets stripped on the clientside which would means thats its nothing to do with a PHP bug/setting/feature/misunderstanding/etc)
Neil