Thomas Bruederli
2012-11-17 be9aacaa5296dfca63fb3a01c2dc52538d1546aa
program/include/rcube_utils.php
@@ -24,7 +24,8 @@
/**
 * Utility class providing common functions
 *
 * @package Core
 * @package    Framework
 * @subpackage Utils
 */
class rcube_utils
{
@@ -249,9 +250,6 @@
            }
            $out = strtr($str, $encode_arr);
            // avoid douple quotation of &
            $out = preg_replace('/&([A-Za-z]{2,6}|#[0-9]{2,4});/', '&\\1;', $out);
            return $newlines ? nl2br($out) : $out;
        }
@@ -764,7 +762,7 @@
            }
        }
        $result[] = substr($string, $p);
        $result[] = (string) substr($string, $p);
        return $result;
    }