<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>横浜鯖缶日誌 &#187; 未分類</title>
	<atom:link href="http://pandora-lab.com/category/%e6%9c%aa%e5%88%86%e9%a1%9e/feed/" rel="self" type="application/rss+xml" />
	<link>http://pandora-lab.com</link>
	<description>なんとも地味な日々の作業記録</description>
	<lastBuildDate>Fri, 05 Feb 2010 19:08:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>net2ftpのバグについて</title>
		<link>http://pandora-lab.com/2009/11/07/net2ftp%e3%81%ae%e3%83%90%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/</link>
		<comments>http://pandora-lab.com/2009/11/07/net2ftp%e3%81%ae%e3%83%90%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 07:39:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://pandora-lab.com/?p=29</guid>
		<description><![CDATA[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&#91;"browser_agent"&#93; == "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&#91;"browser_platform"&#93; == "Mac"){
if ($net2ftp_globals&#91;"browser_agent"&#93; == "Safari" &#124;&#124; $net2ftp_globals&#91;"browser_agent"&#93; == "IE"){
    header("Content-type: application/force-download");
    header("Content-Transfer-Encoding: Binary");
    header("Content-disposition: attachment; filename=\"".$filename_html."\"");
 ]]></description>
			<content:encoded><![CDATA[<p>net2ftp バージョン0.98にはSafariやIEでアクセスした際にダウンロードするファイル名がすべてindex.phpになってしまうバグがある。<br />
この問題は下記でも指摘されているが修正されていない。<br />
<a href="http://www.net2ftp.org/forums/viewtopic.php?id=2960">http://www.net2ftp.org/forums/viewtopic.php?id=2960</a></p>
<p>includes/filesystem.inc.php<br />
を下記に修正</p>
<pre class="brush:php;first-line:3718;">	header("Content-Type: " . $content_type);
	header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
	if ($net2ftp_globals&#91;"browser_agent"&#93; == "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&#91;"browser_platform"&#93; == "Mac"){
if ($net2ftp_globals&#91;"browser_agent"&#93; == "Safari" || $net2ftp_globals&#91;"browser_agent"&#93; == "IE"){
    header("Content-type: application/force-download");
    header("Content-Transfer-Encoding: Binary");
    header("Content-disposition: attachment; filename=\"".$filename_html."\"");
    header("Content-Description: $filename_html");
    header("Content-Length: $filesize");
    header("Connection: close");
    } else {
		// Firefox needs an asterisk to enable filenames with special characters
		header("Content-Disposition: $content_disposition; filename*=\"" . $filename_html . "\"");
		header("Pragma: no-cache");
	}

	header("Content-Description: $filename_html");
	header("Content-Length: $filesize");
	header("Connection: close");

} // End function sendDownloadHeaders</pre>
<p>フォーラムでは</p>
<pre>if ($net2ftp_globals&#91;"browser_platform"&#93; == "Mac"){</pre>
<p>としているけど、WindowsのSafariでも再現するどころか、IE7、IE8でも再現するので</p>
<pre>if ($net2ftp_globals&#91;"browser_agent"&#93; == "Safari" || $net2ftp_globals&#91;"browser_agent"&#93; == "IE"){</pre>
<p>とした。<br />
<em></p>
]]></content:encoded>
			<wfw:commentRss>http://pandora-lab.com/2009/11/07/net2ftp%e3%81%ae%e3%83%90%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ブログ開始</title>
		<link>http://pandora-lab.com/2009/11/07/%e3%83%96%e3%83%ad%e3%82%b0%e9%96%8b%e5%a7%8b/</link>
		<comments>http://pandora-lab.com/2009/11/07/%e3%83%96%e3%83%ad%e3%82%b0%e9%96%8b%e5%a7%8b/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 07:22:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://pandora-lab.com/?p=27</guid>
		<description><![CDATA[本日から鯖缶日誌を開始します。
]]></description>
			<content:encoded><![CDATA[<p>本日から鯖缶日誌を開始します。</p>
]]></content:encoded>
			<wfw:commentRss>http://pandora-lab.com/2009/11/07/%e3%83%96%e3%83%ad%e3%82%b0%e9%96%8b%e5%a7%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
