[Pkg-owncloud-commits] [owncloud] 28/122: Try to set required ini values in base.php
David Prévot
taffit at moszumanska.debian.org
Sat May 9 00:00:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 8a85d8bc171db7ae2e12f613eb2961764c31f532
Author: Lukas Reschke <lukas at owncloud.com>
Date: Sun May 3 13:23:29 2015 +0200
Try to set required ini values in base.php
Fixes https://github.com/owncloud/core/issues/16006
---
lib/base.php | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/base.php b/lib/base.php
index ec87548..d22385c 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();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list