diff options
author | Mouad Err <mouad@tousfacteurs.com> | 2022-06-21 15:15:11 +0200 |
---|---|---|
committer | Mouad Err <mouad@tousfacteurs.com> | 2022-06-21 15:15:11 +0200 |
commit | ca00ea86443d2b1563b0e1b51ce8225bd315e69e (patch) | |
tree | 634789346d032c12a26651ce8dad046a4e34dbe6 /system/helpers | |
parent | 87f9ac6ca2eb125f5991243865e7e5e96fd3987b (diff) |
Bug Fix: [cookie_helper.php] set_cookie was missing sameSite argument
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/cookie_helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/cookie_helper.php b/system/helpers/cookie_helper.php index 2ea9c2901..0325e3db3 100644 --- a/system/helpers/cookie_helper.php +++ b/system/helpers/cookie_helper.php @@ -68,10 +68,10 @@ 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 = 0, $domain = '', $path = '/', $prefix = '', $secure = NULL, $httponly = NULL) + function set_cookie($name, $value = '', $expire = 0, $domain = '', $path = '/', $prefix = '', $secure = NULL, $httponly = NULL, $samesite = NULL) { // Set the config file options - get_instance()->input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure, $httponly); + get_instance()->input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure, $httponly, $samesite); } } |