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:
ctrlaltca
2026-04-18 03:00:02 +02:00
committed by GitHub
parent 23b1d4652c
commit 33201ec1d2
+1 -1
View File
@@ -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(