#40813 [Fbk->Opn]: upload filename
| From: | gianluca dot gimigliano at interno dot it | Date: | Thu, 15 Mar 2007 14:19:28 +0000 |
| Subject: | #40813 [Fbk->Opn]: upload filename | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110385@lists.php.net to get a copy of this message | ||
ID: 40813
User updated by: gianluca dot gimigliano at interno dot it
Reported By: gianluca dot gimigliano at interno dot it
-Status: Feedback
+Status: Open
Bug Type: *Web Server problem
Operating System: Windows XP
PHP Version: 5.2.1
New Comment:
With this apache version:
Apache Version Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8d
PHP/5.2.2-dev
The prolem is the same
Previous Comments:
------------------------------------------------------------------------
[2007-03-15 13:02:30] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2007-03-15 09:47:54] gianluca dot gimigliano at interno dot it
Description:
------------
When you try to upload a file with the character:' in the name,
the uploaded file name is read from the ' position.
Reproduce code:
---------------
<html><head></head>
<body>
<?
if ($_FILES['uploaded']) echo $_FILES['uploaded']['name'];
?>
<form method="post" enctype="multipart/form-data">
<input name="uploaded" type="file">
<input name="send" type="submit" value="send">
</form>
</body>
</html>
Expected result:
----------------
If the uploaded file name is: special'ized.doc
The correct output is: special'ized.doc
Actual result:
--------------
If the uploaded file name is: special'ized.doc
The real output is: ized.doc
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40813&edit=1