File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,9 @@ public function testAuthorisePost_success()
250
250
{
251
251
252
252
$ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
253
- $ _POST [csrfprotector::$ config ['CSRFP_TOKEN ' ]] = $ _GET [csrfprotector::$ config ['CSRFP_TOKEN ' ]] = $ _SESSION [csrfprotector::$ config ['CSRFP_TOKEN ' ]];
253
+ $ _POST [csrfprotector::$ config ['CSRFP_TOKEN ' ]]
254
+ = $ _GET [csrfprotector::$ config ['CSRFP_TOKEN ' ]]
255
+ = $ _SESSION [csrfprotector::$ config ['CSRFP_TOKEN ' ]][0 ];
254
256
$ temp = $ _SESSION [csrfprotector::$ config ['CSRFP_TOKEN ' ]];
255
257
256
258
csrfprotector::authorizePost (); //will create new session and cookies
@@ -262,7 +264,9 @@ public function testAuthorisePost_success()
262
264
// For get method
263
265
$ _SERVER ['REQUEST_METHOD ' ] = 'GET ' ;
264
266
csrfp_wrapper::changeRequestType ('GET ' );
265
- $ _POST [csrfprotector::$ config ['CSRFP_TOKEN ' ]] = $ _GET [csrfprotector::$ config ['CSRFP_TOKEN ' ]] = $ _SESSION [csrfprotector::$ config ['CSRFP_TOKEN ' ]];
267
+ $ _POST [csrfprotector::$ config ['CSRFP_TOKEN ' ]]
268
+ = $ _GET [csrfprotector::$ config ['CSRFP_TOKEN ' ]]
269
+ = $ _SESSION [csrfprotector::$ config ['CSRFP_TOKEN ' ]][0 ];
266
270
$ temp = $ _SESSION [csrfprotector::$ config ['CSRFP_TOKEN ' ]];
267
271
268
272
csrfprotector::authorizePost (); //will create new session and cookies
You can’t perform that action at this time.
0 commit comments