E52D Correctly urlencode path in setcookie(); refix Studio-42#3538 by ctrlaltca · Pull Request #3754 · Studio-42/elFinder · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@ctrlaltca
Copy link
Contributor

Some characters are valid in URLs but not in cookies, eg. comma or semicolon. They needs to be encoded properly.

setcookie(): "path" option cannot contain ",", ";", " ", "\t", "\r", "\n", "\013", or "\014" (Error Code: 0)
vendor/studio-42/elfinder/php/elFinder.class.php (2085)

This is the same as issue #3538
It was fixed by #3561
Then the change was reverted in #3619
I'm not sure about the problem fixed by #3619, as there's no related issue or explanation on the change.

Still, the original problem of #3528 reappeared, so I'm submitting the fix again.

Some characters are valid in URLs but not in cookies, eg. comma or semicolon.
They needs to be encoded properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0