diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-01 12:11:01 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-01 12:11:01 +0000 |
commit | 08b3b98051f56cfc1774db5c92c183cf33ed8bdd (patch) | |
tree | d93e764b9ac3fd30eaf827a1017fbb40a7abf40c /lib/constraints | |
parent | a928c5170fa58e4aef91ebca6c4fc9ec7cea812e (diff) | |
download | gitlab-ce-08b3b98051f56cfc1774db5c92c183cf33ed8bdd.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/constraints')
-rw-r--r-- | lib/constraints/jira_encoded_url_constrainer.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/constraints/jira_encoded_url_constrainer.rb b/lib/constraints/jira_encoded_url_constrainer.rb new file mode 100644 index 00000000000..92e2fff346b --- /dev/null +++ b/lib/constraints/jira_encoded_url_constrainer.rb @@ -0,0 +1,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 |