diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-03-16 18:25:39 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-03-16 18:25:39 +0000 |
commit | d5cb998e611805a7b18fa4b977825f70fa7dd7bb (patch) | |
tree | 1d589494f9a3d27f52cb0d275c069299f011f540 /lib/api/projects.rb | |
parent | ac8beca42399fd36b471c63ea1dfe8ad0e48ed8f (diff) | |
parent | 63360adeae3ba5b302b711c73b6439956d274cde (diff) | |
download | gitlab-ce-d5cb998e611805a7b18fa4b977825f70fa7dd7bb.tar.gz |
Merge branch '27988-fix-transient-failure-in-commits-api' into 'master'
Ensure dots in project and group ID are allowed in the API endpoints
Closes #27988
See merge request !9944
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 63a4cdd5954..0fbe1669d45 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -142,7 +142,7 @@ module API params do requires :id, type: String, desc: 'The ID of a project' end - resource :projects, requirements: { id: /[^\/]+/ } do + resource :projects, requirements: { id: %r{[^/]+} } do desc 'Get a single project' do success Entities::ProjectWithAccess end |