diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /lib/extracts_ref.rb | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'lib/extracts_ref.rb')
-rw-r--r-- | lib/extracts_ref.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/extracts_ref.rb b/lib/extracts_ref.rb index daba0452318..9799116038e 100644 --- a/lib/extracts_ref.rb +++ b/lib/extracts_ref.rb @@ -126,8 +126,10 @@ module ExtractsRef # overridden in subclasses, do not remove def get_id - id = [params[:id] || params[:ref]] - id << "/" + params[:path] unless params[:path].blank? + allowed_params = params.permit(:id, :ref, :path) + + id = [allowed_params[:id] || allowed_params[:ref]] + id << "/" + allowed_params[:path] unless allowed_params[:path].blank? id.join end |