]> source.dussan.org Git - nextcloud-server.git/commitdiff
Properly check for mbstring extension
authorLukas Reschke <lukas@owncloud.com>
Tue, 31 May 2016 06:12:36 +0000 (08:12 +0200)
committerLukas Reschke <lukas@owncloud.com>
Tue, 31 May 2016 06:12:36 +0000 (08:12 +0200)
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

index e3d678f568d7d8610a701d1415c0b6b5f2ab59c9..b744db21238aa2aebc4aa088c5e0d913e6a47e6d 100644 (file)
@@ -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',