From e1053e800999d556e6c2115500f5e03d19cc7076 Mon Sep 17 00:00:00 2001 From: arino Date: Wed, 6 Aug 2003 14:51:05 +0900 Subject: [PATCH] =?utf8?q?TrackBack=20Ping=E5=AF=BE=E7=AD=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- init.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/init.php b/init.php index c18cced..71b3d69 100644 --- a/init.php +++ b/init.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: init.php,v 1.59 2003/07/29 09:57:14 arino Exp $ +// $Id: init.php,v 1.60 2003/08/06 05:51:05 arino Exp $ // ///////////////////////////////////////////////// @@ -154,11 +154,21 @@ if (array_key_exists('encode_hint',$post)) $encode = mb_detect_encoding($post['encode_hint']); mb_convert_variables(SOURCE_ENCODING,$encode,$post); } +else if (array_key_exists('charset',$post)) +{ + // TrackBack Ping¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¤³¤È¤¬¤¢¤ë + // »ØÄꤵ¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ÎÆâÍƤÇÊÑ´¹¤ò»î¤ß¤ë + if (mb_convert_variables(SOURCE_ENCODING,$post['charset'],$post) !== $post['charset']) + { + // ¤¦¤Þ¤¯¤¤¤«¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¥³¡¼¥É¸¡½Ð¤ÎÀßÄê¤ÇÊÑ´¹¤·¤Ê¤ª¤· + mb_convert_variables(SOURCE_ENCODING,'auto',$post); + } +} else if (count($post) > 0) { // encode_hint ¤¬Ìµ¤¤¤È¤¤¤¦¤³¤È¤Ï¡¢Ìµ¤¤¤Ï¤º¡£ // ¥Ç¥Ð¥Ã¥°ÍѤˡ¢¼è¤ê¤¢¤¨¤º¡¢·Ù¹ð¥á¥Ã¥»¡¼¥¸¤ò½Ð¤·¤Æ¤ª¤­¤Þ¤¹¡£ - echo "

Warning: 'encode_hint' field is not found in the posted data.

\n"; +// echo "

Warning: 'encode_hint' field is not found in the posted data.

\n"; // Á´Éô¤Þ¤È¤á¤Æ¡¢¥³¡¼¥É¸¡½Ð¡¢ÊÑ´¹ mb_convert_variables(SOURCE_ENCODING,'auto',$post); } -- 2.11.0