diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-14 18:08:50 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-14 18:08:50 +0100 |
commit | c9abdadd7a08f972d5a12472f9f5ac443e37a6ac (patch) | |
tree | a95ddc11dcd4a2f08488e35e4340a62db669f7f6 /lib/api/v3 | |
parent | e52529e25c8f4b597bbf4ae2815f570b4e4a9898 (diff) | |
download | gitlab-ce-c9abdadd7a08f972d5a12472f9f5ac443e37a6ac.tar.gz |
Ensure dots in project path is allowed in the commits API
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api/v3')
-rw-r--r-- | lib/api/v3/commits.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/commits.rb b/lib/api/v3/commits.rb index d254d247042..6f36b2bc1c4 100644 --- a/lib/api/v3/commits.rb +++ b/lib/api/v3/commits.rb @@ -11,7 +11,7 @@ module API params do requires :id, type: String, desc: 'The ID of a project' end - resource :projects do + resource :projects, requirements: { id: /.+/ } do desc 'Get a project repository commits' do success ::API::Entities::RepoCommit end |