svnno****@sourc*****
svnno****@sourc*****
2009年 12月 31日 (木) 01:40:34 JST
Revision: 749 http://sourceforge.jp/projects/p2-php/svn/view?view=rev&revision=749 Author: rsk Date: 2009-12-31 01:40:34 +0900 (Thu, 31 Dec 2009) Log Message: ----------- expack: - 無駄な文字コード変換を削除。 Modified Paths: -------------- p2ex/trunk/lib/P2Client.php -------------- next part -------------- Modified: p2ex/trunk/lib/P2Client.php =================================================================== --- p2ex/trunk/lib/P2Client.php 2009-12-30 16:35:14 UTC (rev 748) +++ p2ex/trunk/lib/P2Client.php 2009-12-30 16:40:34 UTC (rev 749) @@ -272,8 +272,7 @@ } } - $body = mb_convert_encoding($response['body'], 'SJIS-win', 'CP51932,SJIS-win,UTF-8'); - return (bool)preg_match(self::REGEX_SUCCESS, $body); + return (bool)preg_match(self::REGEX_SUCCESS, $response['body']); } else { throw new P2Exception('Post form not found.'); }