#39604 [WFx]: File Upload Original name problem if it is with apostrophe.
| From: | akocherhan at sagasoft dot com | Date: | Thu, 23 Nov 2006 10:38:52 +0000 |
| Subject: | #39604 [WFx]: File Upload Original name problem if it is with apostrophe. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105362@lists.php.net to get a copy of this message | ||
ID: 39604
User updated by: akocherhan at sagasoft dot com
Reported By: akocherhan at sagasoft dot com
Status: Wont fix
Bug Type: Unknown/Other Function
Operating System: Windows
PHP Version: 4.4.4
New Comment:
So as I understand it is not possible to fix this bug in php version
4.
And we need to move to php version 5, recheck/retest/rewrite all php
scripts?
Maybe there is another way?
Thanks for understanding.
Previous Comments:
------------------------------------------------------------------------
[2006-11-23 10:32:32] tony2001@php.net
I don't think so.
PHP4 is in maintainance state and only critical/security problems are
fixed there. This is neither critical nor security related.
------------------------------------------------------------------------
[2006-11-23 10:27:08] akocherhan at sagasoft dot com
Thanks, but my web site use php version 4.
Is this bug fixed for php version 4?
------------------------------------------------------------------------
[2006-11-23 10:23:00] 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
------------------------------------------------------------------------
[2006-11-23 10:20:03] akocherhan at sagasoft dot com
Description:
------------
I have the same problem as it was described in bug #31398 and #38245.
I.e. if file name is test1'test2.txt the first part of the filename
including the apostrophe is cut off so it
shows as: test2.txt
php version is 4.4.4.
Also I tried to install the latest version from cvs (4.4.5 dev).But
this bug still exist.
Please tell me what I must to do to fix this problem.
Reproduce code:
---------------
<?php print_r($_FILES); ?>
<form action="2.php" method="post"
enctype="multipart/form-data">
<p>File:
<input type="file" name="newfile" />
<input type="submit" value="Send" />
</p>
</form>
Expected result:
----------------
The full name of the file uploaded including the apostrophe.
Actual result:
--------------
The first part of the filename is cut off including the apostrophe.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39604&edit=1