• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-jp-ancient: Commit

Nucleus CMS日本語版SVNをgit-svnしたもの。リポジトリの変換作業用


Commit MetaInfo

Revisiond69e3d2c9c68e9315c0a8a9a08b4046b07830d3b (tree)
Zeit2005-03-11 12:23:22
Autorkimitake <kimitake@1ca2...>
Commiterkimitake

Log Message

added header("Content-Type: application/xml"); before feeding

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/branches/branch-3-15@25 1ca29b6e-896d-4ea0-84a5-967f57386b96

Ändern Zusammenfassung

Diff

--- a/euc/atom.php
+++ b/euc/atom.php
@@ -38,6 +38,8 @@ if (!$CONF['DisableSite']) {
3838 header("HTTP/1.0 304 Not Modified");
3939 header('Content-Length: 0');
4040 } else {
41+ $feed = mb_convert_encoding($feed, "UTF-8", "EUC-JP");
42+ header("Content-Type: application/xml");
4143 // dump feed
4244 echo $feed;
4345 }
--- a/euc/xml-rss2.php
+++ b/euc/xml-rss2.php
@@ -38,6 +38,8 @@ if (!$CONF['DisableSite']) {
3838 header("HTTP/1.0 304 Not Modified");
3939 header('Content-Length: 0');
4040 } else {
41+ $feed = mb_convert_encoding($feed, "UTF-8", "EUC-JP");
42+ header("Content-Type: application/xml");
4143 // dump feed
4244 echo $feed;
4345 }
--- a/utf8/atom.php
+++ b/utf8/atom.php
@@ -38,6 +38,7 @@ if (!$CONF['DisableSite']) {
3838 header("HTTP/1.0 304 Not Modified");
3939 header('Content-Length: 0');
4040 } else {
41+ header("Content-Type: application/xml");
4142 // dump feed
4243 echo $feed;
4344 }
--- a/utf8/xml-rss2.php
+++ b/utf8/xml-rss2.php
@@ -38,6 +38,7 @@ if (!$CONF['DisableSite']) {
3838 header("HTTP/1.0 304 Not Modified");
3939 header('Content-Length: 0');
4040 } else {
41+ header("Content-Type: application/xml");
4142 // dump feed
4243 echo $feed;
4344 }
Show on old repository browser