Fix undefined method error for Compare, Commit controllers
What does this MR do and why?
-
Contributes to: #351520 (closed)
-
Sentry: https://sentry.gitlab.net/gitlab/gitlabcom/issues/3246803
-
Use strong parameters for
page
parameter
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Visit link http://127.0.0.1:3000/gitlab-org/gitlab-shell/-/compare/13-18-stable...main?from_project_id=2&page[test]=test
- Invalid page value should not raise an exception
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin