Skip to content

Commit 1df6fe9

Browse files
committed
Add cookie urlencode tests for name and value
1 parent 99bb937 commit 1df6fe9

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
Array
3+
(
4+
[0] => Content-Type: text/plain; charset=utf-8
5+
[1] => Cache-Control: no-cache, private
6+
[2] => Date: Sat, 12 Nov 1955 20:04:00 GMT
7+
[3] => Set-Cookie: https%3A%2F%2Fblackfire.io%2F%3F%2A%28%29%3A%40%26%2B%24%2F%25%23%5B%5D=https%3A%2F%2Fblackfire.io%2F%3F%2A%28%29%3A%40%26%2B%24%2F%25%23%5B%5D; path=/; httponly
8+
)
9+
shutdown
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
use Symfony\Component\HttpFoundation\Cookie;
4+
use Symfony\Component\HttpFoundation\Response;
5+
6+
require __DIR__ . '/common.inc';
7+
8+
$r = new Response();
9+
$r->headers->set('Date', 'Sat, 12 Nov 1955 20:04:00 GMT');
10+
$r->headers->setCookie(new Cookie('https://blackfire.io/?*():@&+$/%#[]', 'https://blackfire.io/?*():@&+$/%#[]'));
11+
$r->sendHeaders();

0 commit comments

Comments
 (0)