in some case charset can be in lower case.
Add strtoupper() in UTF-8 check to avoid error message
This commit is contained in:
parent
9baf7a0a3f
commit
1fcea6f1bd
|
@ -1425,10 +1425,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';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue