- open /tools/run_event.php script for editing
- comment-out the exit_code(1, 'This script needs to be enabled manually !'); line (if not already commented-out)
- as the 1st line in the script (after licensing comment) add $_COOKIE['fake_var'] = 'fake_value';
- after $application->Init(); add die('is_fake_var_parsed: ' . ($application->GetVarDirect('fake_var', 'Cookie') === 'fake_value' ? 'Y' : 'N') . PHP_EOL);
- save changes
- run the php tools/run_event.php test:test b674006f3edb1d9cd4d838c150b0567d command from the root folder of In-Portal installation
- confirm, that output contains: is_fake_var_parsed: N
Details
Details
- Reviewers
erik - Commits
- rINP16729: Fixes INP-1824 - Don't parse Cookies in CLI mode
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.