From 6a0cb250966e3bca5bd0dcda82505bfd905167a7 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 8 Jul 2014 18:15:23 +0300 Subject: Dont allow ? in project path Because it causes 500 error on every page where link to such project exists Signed-off-by: Dmitriy Zaporozhets --- lib/gitlab/regex.rb | 2 +- spec/lib/gitlab/regex_spec.rb | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 spec/lib/gitlab/regex_spec.rb diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index 153613760fe..4b8038843b0 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -72,7 +72,7 @@ module Gitlab end def default_regex - /\A[.?]?[a-zA-Z0-9_][a-zA-Z0-9_\-\.]*(?