Skip to content

Commit 39ef254

Browse files
author
Matthias Molitor
committed
decode cookie value before forwarding to Symfony response
1 parent ffb2982 commit 39ef254

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Integration/LegacyCaptureResponseFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ private static function createCookieFromString($cookie, $url = null)
8585

8686
$values = array(
8787
'name' => trim($name),
88-
'value' => trim($value),
88+
// Cookie value must be decoded, otherwise it is encoded again when we forward it to the Symfony response.
89+
// That would lead to problems, for example with session cookies whose id can contain a comma.
90+
'value' => trim(urldecode($value)),
8991
'expires' => 0,
9092
'path' => '/',
9193
'domain' => '',

0 commit comments

Comments
 (0)