Skip to content

Commit f4a2e2a

Browse files
FOP-3284: Correct temp name
1 parent 1927bfa commit f4a2e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fop-core/src/main/java/org/apache/fop/apps/io/ResourceResolverFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private File getTempFile(String uri) throws IllegalStateException {
177177
}
178178

179179
private File createTempFile(String path) throws IOException {
180-
File tempFile = Files.createTempFile(path, ".fop.tmp").toFile();
180+
File tempFile = Files.createTempFile(path.replace("/", ""), ".fop.tmp").toFile();
181181
File oldFile = tempFiles.put(path, tempFile);
182182
if (oldFile != null) {
183183
String errorMsg = oldFile.getAbsolutePath() + " has been already created for " + path;

0 commit comments

Comments
 (0)