From a23df94af18bfa814c1665f67f3b660de993eb91 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 31 May 2016 08:12:36 +0200 Subject: [PATCH] Properly check for mbstring extension mb_detect_encoding is in the fallback we ship in the polyfill library, mb_strcut is not. Thus this lead to a false positive and ownCloud would just break. --- lib/private/legacy/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index e3d678f568..b744db2123 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -738,7 +738,7 @@ class OC_Util { ), 'functions' => [ 'xml_parser_create' => 'libxml', - 'mb_detect_encoding' => 'mb multibyte', + 'mb_strcut' => 'mb multibyte', 'ctype_digit' => 'ctype', 'json_encode' => 'JSON', 'gd_info' => 'GD',