[Phpfreechat-svn] SF.net SVN: phpfreechat: [724] trunk/src/phpfreechat.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-02 20:38:51
|
Revision: 724 http://svn.sourceforge.net/phpfreechat/?rev=724&view=rev Author: kerphi Date: 2006-09-02 13:38:40 -0700 (Sat, 02 Sep 2006) Log Message: ----------- Bug fix: if preg_* module is not compiled with utf8 support, a warning occurs Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-09-02 20:14:57 UTC (rev 723) +++ trunk/src/phpfreechat.class.php 2006-09-02 20:38:40 UTC (rev 724) @@ -228,7 +228,7 @@ $c =& pfcGlobalConfig::Instance(); //$nickname = str_replace("\\", "", $nickname); // '\' is a forbidden charactere for nicknames $nickname = trim($nickname); - $nickname = utf8_substr($nickname, 0, $c->max_nick_len); + $nickname = @utf8_substr($nickname, 0, $c->max_nick_len); return $nickname; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |