(Snyk) Fixed finding: "java/Ssrf"

This commit is contained in:
pixeebotstirling[bot] 2025-07-17 15:58:14 +00:00 committed by GitHub
parent fc9551a332
commit 7d2d3b53d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,7 +108,9 @@ public class PipelineProcessor {
if (inputFileTypes == null) {
inputFileTypes = new ArrayList<String>(Arrays.asList("ALL"));
}
// List outputFileTypes = apiDocService.getExtensionTypes(true, operation);
if (!operation.matches("^[a-zA-Z0-9_-]+$")) {
throw new IllegalArgumentException("Invalid operation value received.");
}
String url = getBaseUrl() + operation;
List<Resource> newOutputFiles = new ArrayList<>();
if (!isMultiInputOperation) {