横浜鯖缶日誌

なんとも地味な日々の作業記録

  • ホーム
  • 紹介
  • お問い合わせ

カテゴリー : 未分類

net2ftpのバグについて

  • 2009年 11月 7日
  • カテゴリー : 未分類

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."\""); - [ 続きを読む ]

ブログ開始

  • 2009年 11月 7日
  • カテゴリー : 未分類

本日から鯖缶日誌を開始します。 - [ 続きを読む ]

お知らせ

ブログはじめまして
RSS FEED

Recent entry

  • 2010-02-04
  • Net_UserAgent_Mobile のバグについて
  • 2010-01-01
  • はんにんさがし
  • 2009-11-11
  • BINDエラーチェック dnswalk
  • 2009-11-08
  • mod_vhost_alias が普及しない理由
  • 2009-11-07
  • net2ftpのバグについて

アーカイブ

  • 2010年2月
  • 2010年1月
  • 2009年11月

カテゴリー

  • apache
  • BIND
  • バグ
  • 未分類
  • Copyright ©  2009-2010  横浜鯖缶日誌
  • Theme designed by mono-lab
  • Powerd by WordPress