#40813 [NEW]: upload filename
From: gianluca dot gimigliano at interno dot it
Operating system: Windows XP
PHP version: 5.2.1
PHP Bug Type: Scripting Engine problem
Bug description: upload filename
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 bug report at http://bugs.php.net/?id=40813&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40813&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40813&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40813&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40813&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40813&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40813&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40813&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40813&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40813&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40813&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40813&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40813&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40813&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40813&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40813&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40813&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40813&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40813&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40813&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40813&r=mysqlcfg
Thread (6 messages)
- gianluca dot gimigliano at interno dot it