Fix strict typing issues in lib/base.php
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
33a6e265b2
commit
6bf1fca6f0
12
lib/base.php
12
lib/base.php
|
@ -417,7 +417,7 @@ class OC {
|
||||||
}
|
}
|
||||||
|
|
||||||
// prevents javascript from accessing php session cookies
|
// prevents javascript from accessing php session cookies
|
||||||
ini_set('session.cookie_httponly', true);
|
ini_set('session.cookie_httponly', 'true');
|
||||||
|
|
||||||
// set the cookie path to the Nextcloud directory
|
// set the cookie path to the Nextcloud directory
|
||||||
$cookie_path = OC::$WEBROOT ? : '/';
|
$cookie_path = OC::$WEBROOT ? : '/';
|
||||||
|
@ -488,7 +488,7 @@ class OC {
|
||||||
*/
|
*/
|
||||||
public static function setRequiredIniValues() {
|
public static function setRequiredIniValues() {
|
||||||
@ini_set('default_charset', 'UTF-8');
|
@ini_set('default_charset', 'UTF-8');
|
||||||
@ini_set('gd.jpeg_ignore_warning', 1);
|
@ini_set('gd.jpeg_ignore_warning', '1');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -620,8 +620,8 @@ class OC {
|
||||||
|
|
||||||
// Don't display errors and log them
|
// Don't display errors and log them
|
||||||
error_reporting(E_ALL | E_STRICT);
|
error_reporting(E_ALL | E_STRICT);
|
||||||
@ini_set('display_errors', 0);
|
@ini_set('display_errors', '0');
|
||||||
@ini_set('log_errors', 1);
|
@ini_set('log_errors', '1');
|
||||||
|
|
||||||
if(!date_default_timezone_set('UTC')) {
|
if(!date_default_timezone_set('UTC')) {
|
||||||
throw new \RuntimeException('Could not set timezone to UTC');
|
throw new \RuntimeException('Could not set timezone to UTC');
|
||||||
|
@ -635,8 +635,8 @@ class OC {
|
||||||
if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
|
if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
|
||||||
@set_time_limit(3600);
|
@set_time_limit(3600);
|
||||||
}
|
}
|
||||||
@ini_set('max_execution_time', 3600);
|
@ini_set('max_execution_time', '3600');
|
||||||
@ini_set('max_input_time', 3600);
|
@ini_set('max_input_time', '3600');
|
||||||
|
|
||||||
//try to set the maximum filesize to 10G
|
//try to set the maximum filesize to 10G
|
||||||
@ini_set('upload_max_filesize', '10G');
|
@ini_set('upload_max_filesize', '10G');
|
||||||
|
|
Loading…
Reference in New Issue