mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #14335 from owncloud/enable-strict-mode-per-deafult
Fix invalid `ini_set` directives
This commit is contained in:
commit
84cc90a0ee
1 changed files with 2 additions and 2 deletions
|
|
@ -253,7 +253,7 @@ class OC {
|
|||
$header .= '; includeSubDomains';
|
||||
}
|
||||
header($header);
|
||||
ini_set('session.cookie_secure', 'on');
|
||||
ini_set('session.cookie_secure', true);
|
||||
|
||||
if ($request->getServerProtocol() <> 'https' && !OC::$CLI) {
|
||||
$url = 'https://' . $request->getServerHost() . $request->getRequestUri();
|
||||
|
|
@ -405,7 +405,7 @@ class OC {
|
|||
|
||||
public static function initSession() {
|
||||
// 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
|
||||
$cookie_path = OC::$WEBROOT ? : '/';
|
||||
|
|
|
|||
Loading…
Reference in a new issue