Validate type parameter

This commit is contained in:
René Pfeuffer
2021-01-14 14:22:05 +01:00
parent d91f08aa1c
commit cbb95ad107

View File

@@ -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();