[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [20900] Bug fix : avoid returning utf-8 when the php
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] [20900] Bug fix : avoid returning utf-8 when the php configuration doesn' t offert more encoding to the mb_detect_encoding |
Date: |
Wed, 25 Nov 2009 18:58:42 +0000 |
Revision: 20900
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=20900
Author: Caeies
Date: 2009-11-25 18:58:41 +0000 (Wed, 25 Nov 2009)
Log Message:
-----------
Bug fix : avoid returning utf-8 when the php configuration doesn't offert more
encoding to the mb_detect_encoding
Modified Paths:
--------------
modules/email/trunk/inc/class.mail_msg_base.inc.php
Modified: modules/email/trunk/inc/class.mail_msg_base.inc.php
===================================================================
--- modules/email/trunk/inc/class.mail_msg_base.inc.php 2009-11-25 18:01:34 UTC
(rev 20899)
+++ modules/email/trunk/inc/class.mail_msg_base.inc.php 2009-11-25 18:58:41 UTC
(rev 20900)
@@ -4437,7 +4437,7 @@
*/
function ascii2utf($text = '')
{
- if ((function_exists('mb_detect_encoding') &&
mb_detect_encoding($text) == 'UTF-8'))
+ if ((function_exists('mb_detect_encoding') &&
mb_detect_encoding($text, null, true) == 'UTF-8'))
{
return $text;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [20900] Bug fix : avoid returning utf-8 when the php configuration doesn' t offert more encoding to the mb_detect_encoding,
Caeies <=