php.net |  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: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: florian at angehrn dot com
New email:
PHP Version: OS:

 

 [2004-07-25 00:51 UTC] florian at angehrn dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-25 21:19 UTC] iliaa@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC