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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-05-25 18:14:16 +0300
committerRobert Speicher <robert@gitlab.com>2017-05-25 18:14:16 +0300
commit516e3532c68fb8f40fee083039e711cd6bb8c78c (patch)
tree8aa163411ef184bccb332b7f4622178f4f1acfdd /app/controllers
parent6a88f187be67b8396a23f9b458a2718845af8e5e (diff)
parentc27877cab540f51e9932d6f786e8c39bc4260594 (diff)
Merge branch 'revert-b0498c17' into 'master'
Refactor `DynamicPathValidator` and `GitLab::Regex` some more See merge request !11693
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/refs_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/refs_controller.rb b/app/controllers/projects/refs_controller.rb
index 667f4870c7a..2a0b58fae7c 100644
--- a/app/controllers/projects/refs_controller.rb
+++ b/app/controllers/projects/refs_controller.rb
@@ -74,6 +74,6 @@ class Projects::RefsController < Projects::ApplicationController
private
def validate_ref_id
- return not_found! if params[:id].present? && params[:id] !~ Gitlab::Regex.git_reference_regex
+ return not_found! if params[:id].present? && params[:id] !~ Gitlab::PathRegex.git_reference_regex
end
end