[Pkg-owncloud-commits] [owncloud] 48/95: in some case charset can be in lower case

David Prévot taffit at moszumanska.debian.org
Wed Mar 11 15:49:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.1
in repository owncloud.

commit 9e4be2909cde13deb089c261064b3727b3a6a47f
Author: RealRancor <Fisch.666 at gmx.de>
Date:   Thu Feb 19 19:53:43 2015 +0100

    in some case charset can be in lower case
---
 lib/private/util.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/private/util.php b/lib/private/util.php
index 4a0a028..4e69bf2 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -1399,10 +1399,12 @@ class OC_Util {
 	}
 
 	/**
+	 * Check if PhpCharset config is UTF-8
+	 *
 	 * @return string
 	 */
 	public static function isPhpCharSetUtf8() {
-		return ini_get('default_charset') === 'UTF-8';
+		return strtoupper(ini_get('default_charset')) === 'UTF-8';
 	}
 
 }

-- 
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