Commit r2397: https://sourceforge.net/p/mrbs/code/2397/

------------------------------------------------------------------------
r2397 | cimorrison | 2012-09-06 08:30:03 +0100 (Thu, 06 Sep 2012) | 1 line
Changed paths:
   M /mrbs/trunk/web/functions_ical.inc

Tidied previous change (again)
------------------------------------------------------------------------

Index: mrbs/trunk/web/functions_ical.inc
===================================================================
--- mrbs/trunk/web/functions_ical.inc   (revision 2396)
+++ mrbs/trunk/web/functions_ical.inc   (revision 2397)
@@ -522,13 +522,9 @@
   // We assume that we are using UTF-8 and therefore that a space character
   // is one octet long.   If we ever switched for some reason to using for
   // example UTF-16 this assumption would be invalid.
-  if (function_exists('mb_detect_encoding'))
+  if ((get_charset() != 'utf-8') || (get_mail_charset() != 'utf-8'))
   {
-    $encoding = mb_detect_encoding($str, 'UTF-8', TRUE);
-    if ($encoding != 'UTF-8')
-    {
-      trigger_error("MRBS: internal error - using unsupported character set", 
E_USER_WARNING);
-    }
+    trigger_error("MRBS: internal error - using unsupported character set", 
E_USER_WARNING);
   }
   $space_octets = 1;
 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to