Skip to content

Commit

Permalink
Fixes bcit-ci#6159
Browse files Browse the repository at this point in the history
Fixes a bug introduced in bcit-ci#6025.
  • Loading branch information
proclame committed Apr 17, 2024
1 parent 67b4c5d commit 52242b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/core/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public function set_cookie($name, $value = '', $expire = '', $domain = '', $path
if (is_array($name))
{
// always leave 'name' in last place, as the loop will break otherwise, due to $$item
foreach (array('value', 'expire', 'domain', 'path', 'prefix', 'secure', 'httponly', 'name', 'samesite') as $item)
foreach (array('value', 'expire', 'domain', 'path', 'prefix', 'secure', 'httponly', 'samesite', 'name') as $item)
{
if (isset($name[$item]))
{
Expand Down

0 comments on commit 52242b5

Please sign in to comment.