mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-20 13:47:46 +02:00
Update PipelineProcessor.java
This commit is contained in:
parent
ae5e87726d
commit
2337eabff1
@ -108,7 +108,11 @@ public class PipelineProcessor {
|
|||||||
if (inputFileTypes == null) {
|
if (inputFileTypes == null) {
|
||||||
inputFileTypes = new ArrayList<String>(Arrays.asList("ALL"));
|
inputFileTypes = new ArrayList<String>(Arrays.asList("ALL"));
|
||||||
}
|
}
|
||||||
if (!operation.matches("^[a-zA-Z0-9_-]+$")) {
|
if (!operation.matches("^[a-zA-Z0-9/_-]+$")) {
|
||||||
|
log.error(
|
||||||
|
"Invalid operation value received: {}. Only alphanumeric characters,"
|
||||||
|
+ " underscores, hyphens, and slashes are allowed.",
|
||||||
|
operation);
|
||||||
throw new IllegalArgumentException("Invalid operation value received.");
|
throw new IllegalArgumentException("Invalid operation value received.");
|
||||||
}
|
}
|
||||||
String url = getBaseUrl() + operation;
|
String url = getBaseUrl() + operation;
|
||||||
|
Loading…
Reference in New Issue
Block a user