File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/Symfony/Component/Security/Core/Tests/Role Expand file tree Collapse file tree 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
1818{
1919 public function testPayloadFromV4CanBeUnserialized ()
2020 {
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";}}}} ' ;
2222
2323 $ token = unserialize ($ serialized );
2424
You can’t perform that action at this time.
0 commit comments