diff options
author | Andrey Andreev <narf@devilix.net> | 2017-02-01 13:36:49 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-02-01 13:36:49 +0100 |
commit | 422b8890e8b41a9ecf6644bff169c8c82fa2c82d (patch) | |
tree | 6f73400246ff47dfa4b9c8c028421bc9e0e30104 /system/helpers | |
parent | b1780fc79e1b24ecc51b5448642a84d4022cbadc (diff) |
Fix a CI_Input::set_cookie() bug
Found on StackOverflow: https://stackoverflow.com/questions/41925028/codeigniter-config-overrides-set-cookie-parameters
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/cookie_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/cookie_helper.php b/system/helpers/cookie_helper.php index bb90cba1e..b943edbae 100644 --- a/system/helpers/cookie_helper.php +++ b/system/helpers/cookie_helper.php @@ -67,7 +67,7 @@ if ( ! function_exists('set_cookie')) * @param bool true makes the cookie accessible via http(s) only (no javascript) * @return void */ - function set_cookie($name, $value = '', $expire = '', $domain = '', $path = '/', $prefix = '', $secure = FALSE, $httponly = FALSE) + function set_cookie($name, $value = '', $expire = '', $domain = '', $path = '/', $prefix = '', $secure = NULL, $httponly = NULL) { // Set the config file options get_instance()->input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure, $httponly); |