Repository navigation
fix: console iframe cut-off, replay protection, add full screen console view - #51
Conversation
When favicon.ico is missing, the 404 is redirected to WHMCS. It then runs its hooks, which caused us to rotate our replay protection token. Change the approach to re-issue the token after the prior one is successfully consumed, and add a test case and test instruction to the readme and makefile.
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe PR introduces session-backed replay-token validation with single-use consumption and rotation, alongside comprehensive PHPUnit coverage. Asset cache versions now derive from file modification times. The virtual-machine console gains a fullscreen button. Repository tooling adds Docker-based test execution and PHPStan baseline generation, with corresponding README instructions. CodeRabbit configuration and a server-setup documentation link are also updated. Estimated code review effort: 3 (Moderate) | ~25 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@lib/Helpers/Replay.php`:
- Around line 50-52: Update the token fallback in the replay helper around the
$token assignment to validate that $_REQUEST['knrp'] is a string before calling
trim(); return false for arrays or any other non-string input. Add a regression
test covering an array-valued knrp request and asserting the helper returns
false.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: d94ca465-8498-4fb1-b39e-385c371840d5
⛔ Files ignored due to path filters (2)
assets/dist/css/client.cssis excluded by!**/dist/**assets/dist/js/client.jsis excluded by!**/dist/**
📒 Files selected for processing (11)
.coderabbit.yamlMakefileREADME.mdcomposer.jsonlib/Adaptation/ClientArea/Assets.phplib/Helpers/OverrideHelper.phplib/Helpers/Replay.phplib/ModuleFunction/TestConnection.phpphpstan-baseline.neontests/Helpers/ReplayTest.phpviews/client/virtual_machines/overview.tpl
💤 Files with no reviewable changes (1)
- phpstan-baseline.neon
Fixes
Features
Development