mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
Correctly urlencode path in setcookie(); fix Studio-42#3538 (#3754)
Some characters are valid in URLs but not in cookies, eg. comma or semicolon. They needs to be encoded properly.
This commit is contained in:
@@ -2087,7 +2087,7 @@ class elFinder
|
||||
}
|
||||
|
||||
if ($args['cpath'] && $args['reqid']) {
|
||||
setcookie('elfdl' . $args['reqid'], '1', 0, $args['cpath']);
|
||||
setcookie('elfdl' . $args['reqid'], '1', 0, urlencode($args['cpath']));
|
||||
}
|
||||
|
||||
$result = array(
|
||||
|
||||
Reference in New Issue
Block a user