Skip to content
Snippets Groups Projects
Commit 84cc90a0 authored by Clark Tomlinson's avatar Clark Tomlinson
Browse files

Merge pull request #14335 from owncloud/enable-strict-mode-per-deafult

Fix invalid `ini_set` directives
parents e4bf3fcb 593681a4
No related branches found
No related tags found
No related merge requests found
......@@ -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 ? : '/';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment