File tree 1 file changed +1
-1
lines changed
src/Symfony/Component/Security/Core/Tests/Role
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class LegacyRoleTest extends TestCase
18
18
{
19
19
public function testPayloadFromV4CanBeUnserialized ()
20
20
{
21
- $ serialized = 'C:74:"Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken":236:{a:3:{i:0;N;i:1;s:4:"main";i:2;a:5:{i:0;s:2:"sf";i:1;b:1;i:2;a:1:{i:0;O:41:"Symfony\Component\Security\Core\Role\Role":1:{s:47:"Symfony\Component\Security\Core\Role\Role ' ."\0" .'role ' . "\0" . ' ";s:9:"ROLE_USER";}}i:3;a:0:{}i:4;a:1:{i:0;s:9:"ROLE_USER";}}}} ' ;
21
+ $ serialized = 'C:74:"Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken":236:{a:3:{i:0;N;i:1;s:4:"main";i:2;a:5:{i:0;s:2:"sf";i:1;b:1;i:2;a:1:{i:0;O:41:"Symfony\Component\Security\Core\Role\Role":1:{s:47:" ' . "\0" . ' Symfony\Component\Security\Core\Role\Role ' ."\0" .'role";s:9:"ROLE_USER";}}i:3;a:0:{}i:4;a:1:{i:0;s:9:"ROLE_USER";}}}} ' ;
22
22
23
23
$ token = unserialize ($ serialized );
24
24
You can’t perform that action at this time.
0 commit comments