Merge pull request #25388 from nextcloud/backport/25302/stable20

[stable20] Use RFC-compliant URL encoding for cookies
This commit is contained in:
Roeland Jago Douma 2021-02-06 10:56:27 +01:00 committed by GitHub
commit 30230a436e
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 !== '') {