From: ZUKERAN, s. <sh...@op...> - 2004-06-10 15:47:46
|
Hello, When I will attach a file by ilohamail, an error may sometimes occur. It is logged on error_log of apache as follows. [Fri Jun 11 00:13:39 2004] [error] PHP Warning: move_uploaded_file(): Unable to move '/tmp/php2UeY7e' to '../data/uploads/sh...@op.../1086874713-61663.wNzCs7/eLnR4dA==.dGV4dC9wbGFpbg==.Mg==' in /usr/lib/ilohamail-2/source/compose2.php on line 769 The problem is contained by compose.php and compose2.php script. When uploading a file, $newfile variable is generated by base64_encode function from $userfile_name which web browser passed. But, result of base64_encode function may contain '/' character, so, move_uploaded_file function will fail. If $userfile_name contains only 7bits characters as ascii, the result will not contain '/' character. When I used a Japanese file name, this problem occurs. Probably, as for this problem, the character set of iso-8859-1 or other 8bit character will also happen. ---- ZUKERAN, shin / sh...@op... http://pgp.nic.ad.jp:11371/pks/lookup?op=get&search=0xB2363B9D Key fingerprint = B85D A98E 1701 09E1 9A38 D5E6 2A64 C065 B236 3B9D |