If I create an input type=files in the html form
Then in the target php script use the $_FILES array to get the info
All works well – uploads work fine.
But . . . if the file name contains a single quote mark, the name from $_FILES is not correct. The resulting $
Example test code to demonstrate the problem:
html upload page (test.htm):
[code]<form action=”test.php” method=”post” enctype=”multipart/form-data”>
File: <input type=file name=”file” size=30><br>
<input type=submit name=”submit” value=”Upload File”></form>
php processing page (test.php):
[code=php]<?php
print_r($_FILES);
?>
Then try and use any file name with a single quote in it.
Running PHP Version 4.3.10 with the error
Works fine when using PHP Version 4.3.4
Enhancement or bug?