diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-08 18:15:23 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-08 18:15:23 +0300 |
| commit | 6a0cb250966e3bca5bd0dcda82505bfd905167a7 (patch) | |
| tree | 173c1143b4da63931d89df796c8c81a375265374 /lib | |
| parent | ac1ff491b4f68890381a6e397a342a78962ecad3 (diff) | |
| download | gitlab-ce-6a0cb250966e3bca5bd0dcda82505bfd905167a7.tar.gz | |
Dont allow ? in project path
Because it causes 500 error on every page where link to such project
exists
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gitlab/regex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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_\-\.]*(?<!\.git)\z/ + /\A[a-zA-Z0-9_.][a-zA-Z0-9_\-\.]*(?<!\.git)\z/ end end end |
