]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix invalid `ini_set` directives
authorLukas Reschke <lukas@owncloud.com>
Wed, 18 Feb 2015 14:18:27 +0000 (15:18 +0100)
committerLukas Reschke <lukas@owncloud.com>
Wed, 18 Feb 2015 14:18:27 +0000 (15:18 +0100)
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.

lib/base.php

index cdc662c28d968f1b70cb7549265f30fbc9634af7..0e5d0794ba2fe3a95ff7f1ad9f69f64345f349c5 100644 (file)
@@ -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 ? : '/';