From 4e5af700939b99e72a287fb65bc0bcee68ed3658 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 29 May 2017 11:09:28 +0100 Subject: [PATCH] re-stub mb_strlen (see #615) --- core/util.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/util.inc.php b/core/util.inc.php index 81582cdf..842918dd 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -958,6 +958,13 @@ function data_path($filename) { return $filename; } +if (!function_exists('mb_strlen')) { + // TODO: we should warn the admin that they are missing multibyte support + function mb_strlen($str, $encoding) { + return strlen($str); + } +} + /** * @param string $url * @param string $mfile