|
From: Tomas K. <to...@us...> - 2005-05-06 08:22:06
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv356/functions Modified Files: Tag: SM-1_4-STABLE i18n.php Log Message: mbstring.func_overload workaround. Closes #1061699 and #929644 Index: i18n.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/i18n.php,v retrieving revision 1.129.2.34 retrieving revision 1.129.2.35 diff -u -w -r1.129.2.34 -r1.129.2.35 --- i18n.php 8 Mar 2005 16:53:29 -0000 1.129.2.34 +++ i18n.php 6 May 2005 08:21:50 -0000 1.129.2.35 @@ -262,6 +262,12 @@ } else { header( 'Content-Type: text/html; charset=' . $languages[$sm_notAlias]['CHARSET'] ); } + // mbstring.func_overload<>0 fix. See cvs HEAD comments. + if (function_exists('mb_internal_encoding') && + check_php_version(4,2,0) && + (int)ini_get('mbstring.func_overload')!=0) { + mb_internal_encoding('pass'); + } } } |