#29369 [NEW]: filename with double quotes cutted during upload
| From: | florian at angehrn dot com | Date: | Sat, 24 Jul 2004 22:51:33 +0000 |
| Subject: | #29369 [NEW]: filename with double quotes cutted during upload | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-63478@lists.php.net to get a copy of this message | ||
From: florian at angehrn dot com
Operating system: Linux
PHP version: 4.3.8
PHP Bug Type: *Directory/Filesystem functions
Bug description: filename with double quotes cutted during upload
Description:
------------
if i upload a file which contains double quotes in it, the filename is
cutted
Reproduce code:
---------------
<pre>
<?php print_r($_FILES); ?>
</pre>
<form enctype="multipart/form-data" action="" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
Expected result:
----------------
input file: 0119"1.jpg
content of $_FILES['userfile']['name']: 0119"1.jpg
Actual result:
--------------
input file: 0119"1.jpg
content of $_FILES['userfile']['name']: 0119
--
Edit bug report at http://bugs.php.net/?id=29369&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29369&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29369&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29369&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29369&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29369&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29369&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29369&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29369&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29369&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29369&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29369&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29369&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29369&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29369&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29369&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29369&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29369&r=float