Skip to content

Commit

Permalink
[SECURITY-3058]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-CB authored and jenkinsci-cert-ci committed Feb 23, 2023
1 parent d034626 commit 554587b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/hudson/model/FileParameterDefinition.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import hudson.cli.CLICommand;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Objects;
import javax.servlet.ServletException;
import net.sf.json.JSONObject;
Expand Down Expand Up @@ -118,7 +119,7 @@ private String getFileName(String possiblyPathName) {
@Override
public ParameterValue createValue(CLICommand command, String value) throws IOException, InterruptedException {
// capture the file to the server
File local = File.createTempFile("jenkins", "parameter");
File local = Files.createTempFile("jenkins", "parameter").toFile();
String name;
if (value.isEmpty()) {
FileUtils.copyInputStreamToFile(command.stdin, local);
Expand Down

0 comments on commit 554587b

Please sign in to comment.