mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-06-12 01:30:23 +02:00
suppress sonarqube false positive
This commit is contained in:
@@ -32,6 +32,7 @@ public class InitialRepositoryLocationResolver {
|
||||
*
|
||||
* @return initial path of repository
|
||||
*/
|
||||
@SuppressWarnings("squid:S2083") // path traversal is prevented with ID_MATCHER
|
||||
public Path getPath(String repositoryId) {
|
||||
// avoid path traversal attacks
|
||||
checkArgument(ID_MATCHER.matchesNoneOf(repositoryId), "repository id contains invalid characters");
|
||||
|
||||
Reference in New Issue
Block a user