diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-04 09:35:32 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-04 09:35:32 +0200 |
commit | 870ac88c85ffe20db9708b5a4c69fbe18102f0d6 (patch) | |
tree | 5f8c070d556d32d4f390a075270541fde0ca626b | |
parent | 4de45b5e610a3e09d8945deae2464efbffa478d9 (diff) | |
parent | 8a85d8bc171db7ae2e12f613eb2961764c31f532 (diff) | |
download | nextcloud-server-870ac88c85ffe20db9708b5a4c69fbe18102f0d6.tar.gz nextcloud-server-870ac88c85ffe20db9708b5a4c69fbe18102f0d6.zip |
Merge pull request #16020 from owncloud/set-charset-via-ini-set
Try to set required ini values in base.php
-rw-r--r-- | lib/base.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index ec875480662..d22385c86df 100644 --- a/lib/base.php +++ b/lib/base.php @@ -503,6 +503,12 @@ class OC { } } + /** + * Try to set some values to the required ownCloud default + */ + public static function setRequiredIniValues() { + @ini_set('default_charset', 'UTF-8'); + } public static function init() { // register autoloader @@ -559,6 +565,7 @@ class OC { @ini_set('post_max_size', '10G'); @ini_set('file_uploads', '50'); + self::setRequiredIniValues(); self::handleAuthHeaders(); self::registerAutoloaderCache(); |