|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29369 filename with double quotes cutted during upload
Submitted: 2004-07-25 00:51 UTC Modified: 2004-07-25 21:19 UTC
From: florian at angehrn dot com Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.3.8 OS: Linux
Private report: No CVE-ID:
 [2004-07-25 00:51 UTC] florian at angehrn dot com
if i upload a file which contains double quotes in it, the filename is cutted

Reproduce code:
<?php print_r($_FILES); ?>

<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" />

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-25 21:19 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 06:01:32 2015 UTC