summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorGeorge Petculescu <gxgpet@users.noreply.github.com>2022-06-27 21:12:41 +0200
committerGitHub <noreply@github.com>2022-06-27 21:12:41 +0200
commit9b8f2b7a8405acd1b8ad5956ada3d84472b1e8ae (patch)
treef1c07c2a8160ccc6805b576f8c42fee20d556f76 /system
parent3efe7f0d070ad530208ea4f732708c1e660df0a7 (diff)
parentca00ea86443d2b1563b0e1b51ce8225bd315e69e (diff)
Merge pull request #6140 from Mouerr/develop
Bug Fix: [cookie_helper.php] set_cookie was missing sameSite argument
Diffstat (limited to 'system')
-rw-r--r--system/helpers/cookie_helper.php4
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);
}
}