|
From: Andreas K. <la...@us...> - 2003-02-12 11:20:52
|
Update of /cvsroot/pn-modules/PN_Shoutbox/html/modules/Shoutbox
In directory sc8-pr-cvs1:/tmp/cvs-serv5417/PN_Shoutbox/html/modules/Shoutbox
Modified Files:
index.php
Log Message:
fix for East Chars support problems (thx to class007)
Index: index.php
===================================================================
RCS file: /cvsroot/pn-modules/PN_Shoutbox/html/modules/Shoutbox/index.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** index.php 12 Jan 2003 17:33:47 -0000 1.12
--- index.php 12 Feb 2003 11:20:48 -0000 1.13
***************
*** 198,205 ****
elseif (!$tag)
$wordlen++;
! if (!$tag && !($wordlen%$cols))
$chr .= $cut;
! $result .= $chr;
! }
return $result;
}
--- 198,212 ----
elseif (!$tag)
$wordlen++;
! if(preg_match("/[\x80-\xFF]$/", $chr)){
! $cols++;
! }
! if (!$tag && !($wordlen%$cols)) {
$chr .= $cut;
! if(preg_match("/[\x80-\xFF]$/", $chr)){
! $cols--;
! }
! }
! $result .= $chr;
! }
return $result;
}
|