mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-06 12:20:56 +01:00
Validate type parameter
This commit is contained in:
@@ -245,7 +245,7 @@ public class RepositoryImportResource {
|
||||
)
|
||||
)
|
||||
public Response importFromBundle(@Context UriInfo uriInfo,
|
||||
@PathParam("type") String type,
|
||||
@Pattern(regexp = "\\w{1,10}") @PathParam("type") String type,
|
||||
MultipartFormDataInput input,
|
||||
@QueryParam("compressed") @DefaultValue("false") boolean compressed) {
|
||||
RepositoryPermissions.create().check();
|
||||
|
||||
Reference in New Issue
Block a user