Welcome to mirror list, hosted at ThFree Co, Russian Federation.

jira_encoded_url_constrainer.rb « constraints « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 92e2fff346b40d8104455fe344abe340e17affef (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

module Constraints
  class JiraEncodedUrlConstrainer
    def matches?(request)
      request.path.starts_with?('/-/jira') || request.params[:project_id].include?(Gitlab::Jira::Dvcs::ENCODED_SLASH)
    end
  end
end