Skip to content

Commit

Permalink
Merge pull request #1946 from scireum/feature/ymo/SE-13427-files
Browse files Browse the repository at this point in the history
fix rare case of sanitizing file names with illegal characters
  • Loading branch information
jmuscireum authored Feb 28, 2024
2 parents 09c592b + 0911399 commit 8978402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/sirius/biz/storage/util/StorageUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public boolean containsIllegalFileChars(String name) {
if (Strings.isEmpty(name)) {
return true;
}
return SANITIZE_ILLEGAL_FILE_CHARS.split(name).length > 1 || SANITIZE_SLASHES.split(name).length > 1;
return SANITIZE_ILLEGAL_FILE_CHARS.matcher(name).find() || SANITIZE_SLASHES.matcher(name).find();
}

/**
Expand Down

0 comments on commit 8978402

Please sign in to comment.