[Phpfreechat-svn] SF.net SVN: phpfreechat: [755] trunk/src/phpfreechat.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-12 14:17:19
|
Revision: 755 http://svn.sourceforge.net/phpfreechat/?rev=755&view=rev Author: kerphi Date: 2006-09-12 07:14:00 -0700 (Tue, 12 Sep 2006) Log Message: ----------- [en] Bug fix: the max_text_len parameter didn't work with utf8 (non us-ascii) strings. [fr] Bug fix : le parametre max_text_len ne fonctionnait pas avec des chaines utf8 (non us-ascii). Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-09-12 13:12:59 UTC (rev 754) +++ trunk/src/phpfreechat.class.php 2006-09-12 14:14:00 UTC (rev 755) @@ -270,7 +270,7 @@ function PreFilterMsg($msg) { $c =& pfcGlobalConfig::Instance(); - $msg = substr($msg, 0, $c->max_text_len); + $msg = utf8_substr($msg, 0, $c->max_text_len); $msg = phpFreeChat::FilterSpecialChar($msg); // $msg = phpFreeChat::FilterSmiley($msg); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |