Skip to content

Commit

Permalink
Fix array index problem
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1809674 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Sep 25, 2017
1 parent a716f29 commit c177e96
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ protected final File file(String name, boolean mustExist) {


private boolean isInvalidWindowsFilename(String name) {
if (name.length() == 0) {
return false;
}
// For typical length file names, this is 2-3 times faster than the
// equivalent regular expression. The cut-over point is file names (not
// full paths) of ~65 characters.
Expand Down

0 comments on commit c177e96

Please sign in to comment.