mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-18 03:01:05 +01:00
Validate type parameter
This commit is contained in:
@@ -159,7 +159,8 @@ public class RepositoryImportResource {
|
||||
)
|
||||
)
|
||||
public Response importFromUrl(@Context UriInfo uriInfo,
|
||||
@PathParam("type") String type, @Valid RepositoryImportDto request) {
|
||||
@Pattern(regexp = "\\w{1,10}") @PathParam("type") String type,
|
||||
@Valid RepositoryImportDto request) {
|
||||
RepositoryPermissions.create().check();
|
||||
|
||||
Type t = type(manager, type);
|
||||
|
||||
Reference in New Issue
Block a user