Skip to content

Commit ea1e3c8

Browse files
committed
Fixes #6134
1 parent c707e65 commit ea1e3c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/core/Security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function csrf_set_cookie()
295295
header('Set-Cookie: '.$this->_csrf_cookie_name.'='.$this->_csrf_hash
296296
.'; Expires='.gmdate('D, d-M-Y H:i:s T', $expire)
297297
.'; Max-Age='.$this->_csrf_expire
298-
.'; Path='.rawurlencode(config_item('cookie_path'))
298+
.'; Path='.implode('/', array_map('rawurlencode', explode('/', config_item('cookie_path'))))
299299
.($domain === '' ? '' : '; Domain='.$domain)
300300
.($secure_cookie ? '; Secure' : '')
301301
.(config_item('cookie_httponly') ? '; HttpOnly' : '')

0 commit comments

Comments
 (0)