Merge pull request #25389 from nextcloud/backport/25302/stable19

[stable19] Use RFC-compliant URL encoding for cookies
This commit is contained in:
Roeland Jago Douma 2021-02-09 22:07:45 +01:00 committed by GitHub
commit 68fa9a4f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class CookieHelper {
$header = sprintf( $header = sprintf(
'Set-Cookie: %s=%s', 'Set-Cookie: %s=%s',
$name, $name,
urlencode($value) rawurlencode($value)
); );
if ($path !== '') { if ($path !== '') {