#40813 [Opn->Fbk]: upload filename
ID: 40813
Updated by: tony2001@php.net
Reported By: gianluca dot gimigliano at interno dot it
-Status: Open
+Status: Feedback
-Bug Type: Scripting Engine problem
+Bug Type: *Web Server problem
Operating System: Windows XP
PHP Version: 5.2.1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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
Thread (6 messages)