summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2015-02-18 10:06:12 -0500
committerClark Tomlinson <fallen013@gmail.com>2015-02-18 10:06:12 -0500
commit84cc90a0ee81d32001ccaa38795cbcf4343ac2f0 (patch)
treef33d59990c1bbbb06affd673c7707c9f9a7ba895 /lib
parente4bf3fcb53fd2a4464d264071320fc8b522097d5 (diff)
parent593681a4a96aee0f99d24b19aa23bef7eb294882 (diff)
downloadnextcloud-server-84cc90a0ee81d32001ccaa38795cbcf4343ac2f0.tar.gz
nextcloud-server-84cc90a0ee81d32001ccaa38795cbcf4343ac2f0.zip
Merge pull request #14335 from owncloud/enable-strict-mode-per-deafult
Fix invalid `ini_set` directives
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index cade3ed63cd..8d3baab752e 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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 ? : '/';