Skip to content

Commit

Permalink
[Core] Use canonical file name to create FileOutputStream for plugins (
Browse files Browse the repository at this point in the history
#2482)

Co-authored-by: Sven Lamberti-Meng <[email protected]>
  • Loading branch information
violplayer and Sven Lamberti-Meng authored Feb 17, 2022
1 parent 65dfc97 commit 27befc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private static FileOutputStream createFileOutputStream(File file) {
}

try {
return new FileOutputStream(file);
return new FileOutputStream(canonicalFile);
} catch (FileNotFoundException e) {
// See: https://github.com/cucumber/cucumber-jvm/issues/2108
throw new IllegalArgumentException(String.format("" +
Expand Down

0 comments on commit 27befc8

Please sign in to comment.