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/commits.rb | |
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/commits.rb')
-rw-r--r-- | lib/api/commits.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb index 42401abfe0f..48939798900 100644 --- a/lib/api/commits.rb +++ b/lib/api/commits.rb @@ -10,7 +10,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 Entities::RepoCommit end |