Skip to content

Commit c707e65

Browse files
committed
Fixes #6159
Fixes a bug introduced in #6025.
1 parent 9612185 commit c707e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/core/Input.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function set_cookie($name, $value = '', $expire = 0, $domain = '', $path
309309
if (is_array($name))
310310
{
311311
// always leave 'name' in last place, as the loop will break otherwise, due to $$item
312-
foreach (array('value', 'expire', 'domain', 'path', 'prefix', 'secure', 'httponly', 'name', 'samesite') as $item)
312+
foreach (array('value', 'expire', 'domain', 'path', 'prefix', 'secure', 'httponly', 'samesite', 'name') as $item)
313313
{
314314
if (isset($name[$item]))
315315
{

0 commit comments

Comments
 (0)