php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39604 File Upload Original name problem if it is with apostrophe.
Submitted: 2006-11-23 10:20 UTC Modified: 2006-11-23 10:54 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: akocherhan at sagasoft dot com Assigned:
Status: Wont fix Package: Unknown/Other Function
PHP Version: 4.4.4 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: akocherhan at sagasoft dot com
New email:
PHP Version: OS:

 

 [2006-11-23 10:20 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-23 10:23 UTC] 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:27 UTC] 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:32 UTC] 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:38 UTC] akocherhan at sagasoft dot com
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.
 [2006-11-23 10:40 UTC] derick@php.net
If you manage to find the patch for it (from either HEAD or PHP_5_2), we can have a look at it.
 [2006-11-23 10:54 UTC] akocherhan at sagasoft dot com
Okay, I understand your point.
I'll discuss with my chief about this way.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 18:01:28 2024 UTC