|  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
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: akocherhan at sagasoft dot com
New email:
PHP Version: OS:


 [2006-11-23 10:20 UTC] akocherhan at sagasoft dot com
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">
<input type="file" name="newfile" />
<input type="submit" value="Send" />

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-23 10:23 UTC]
Please try using this CVS snapshot:
For Windows:

 [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]
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]
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.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 05:01:31 2024 UTC