Correctly urlencode path in setcookie(); fix #3538 (#3561)

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
2023-06-02 02:21:06 +02:00
committed by GitHub
parent ca888c167a
commit 34dcd44121
+1 -1
View File
@@ -2082,7 +2082,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(