Fix invalid `ini_set` directives
Somehow they got messed up. Because PHP does automatic type juggling this has worked before as well however it's not guaranteed that this might work in the future as well.
This commit is contained in:
parent
610761d1f7
commit
593681a4a9
|
@ -253,7 +253,7 @@ class OC {
|
||||||
$header .= '; includeSubDomains';
|
$header .= '; includeSubDomains';
|
||||||
}
|
}
|
||||||
header($header);
|
header($header);
|
||||||
ini_set('session.cookie_secure', 'on');
|
ini_set('session.cookie_secure', true);
|
||||||
|
|
||||||
if ($request->getServerProtocol() <> 'https' && !OC::$CLI) {
|
if ($request->getServerProtocol() <> 'https' && !OC::$CLI) {
|
||||||
$url = 'https://' . $request->getServerHost() . $request->getRequestUri();
|
$url = 'https://' . $request->getServerHost() . $request->getRequestUri();
|
||||||
|
@ -405,7 +405,7 @@ class OC {
|
||||||
|
|
||||||
public static function initSession() {
|
public static function initSession() {
|
||||||
// prevents javascript from accessing php session cookies
|
// prevents javascript from accessing php session cookies
|
||||||
ini_set('session.cookie_httponly', '1;');
|
ini_set('session.cookie_httponly', true);
|
||||||
|
|
||||||
// set the cookie path to the ownCloud directory
|
// set the cookie path to the ownCloud directory
|
||||||
$cookie_path = OC::$WEBROOT ? : '/';
|
$cookie_path = OC::$WEBROOT ? : '/';
|
||||||
|
|
Loading…
Reference in New Issue