Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use RFC-compliant URL encoding for cookies
PHP 7.4.2 changed the way how cookies are decoded, applying RFC-compliant raw URL decoding. This leads to a conflict Nextcloud's own cookie encoding, breaking the remember-me function if the UID contains a space character.

Fixes #24438

Signed-off-by: Marco Ziech <[email protected]>
  • Loading branch information
mziech authored Jan 24, 2021
commit 4923c6be2537ff4c1fc4d4c9720cc65945854845
2 changes: 1 addition & 1 deletion lib/private/Http/CookieHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function setCookie(string $name,
$header = sprintf(
'Set-Cookie: %s=%s',
$name,
urlencode($value)
rawurlencode($value)
);

if ($path !== '') {
Expand Down