カテゴリー : 未分類
net2ftp バージョン0.98にはSafariやIEでアクセスした際にダウンロードするファイル名がすべてindex.phpになってしまうバグがある。 この問題は下記でも指摘されているが修正されていない。 http://www.net2ftp.org/forums/viewtopic.php?id=2960 includes/filesystem.inc.php を下記に修正 header("Content-Type: " . $content_type); header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT"); if ($net2ftp_globals["browser_agent"] == "IE") { header("Content-Disposition: $content_disposition; filename=\"" . $filename_html . "\""); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Pragma: public"); } //if ($net2ftp_globals["browser_platform"] == "Mac"){ if ($net2ftp_globals["browser_agent"] == "Safari" || $net2ftp_globals["browser_agent"] == "IE"){ header("Content-type: application/force-download"); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: attachment; filename=\"".$filename_html."\""); - [ 続きを読む ]
本日から鯖缶日誌を開始します。 - [ 続きを読む ]