Skip to content

Commit

Permalink
CB-5609. Refactor after review
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisSinelnikov committed Dec 26, 2024
1 parent aa5bb16 commit fd0b58c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ public boolean deleteFile(
}
}

public void validateFilename(@NotNull String filename) throws DBWebException {
private void validateFilename(@NotNull String filename) throws DBWebException {
Matcher matcher = FORBIDDEN_FILENAME_PATTERN.matcher(filename);

if (matcher.find()) {
throw new DBWebException("File includes forbidden symbols: " + filename);
throw new DBWebException(String.format("File %s contains forbidden symbols", filename));
}
}
}

0 comments on commit fd0b58c

Please sign in to comment.