Fail to upload file when the file name contains apostrophe

Hi,

If the uploaded file name contains ’ (apostrophe), such as Bob’sPhoto.jpg, the upload will fail. This seems to be caused by the file name saved in the temp folder. It is truncated to sPhoto.jpg. In UploadHandler.php I found that the $fileName = $_FILES[$inputName][‘name’] is chopping off the chars before '. How can I fix this problem?

Thanks.

try to converter the ’ caracter to a html entity of this caracter

yes, it might be illegal character and should be replaced.