This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/7.0.x by this push: new 7c3fb67 File separator, not path separator 7c3fb67 is described below commit 7c3fb673f4f17a9c31ebb5be54d3017d50aa41e7 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Jan 20 16:38:32 2021 +0000 File separator, not path separator --- java/org/apache/catalina/util/FileUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org/apache/catalina/util/FileUtil.java b/java/org/apache/catalina/util/FileUtil.java index d25bde7..c8a69cb 100644 --- a/java/org/apache/catalina/util/FileUtil.java +++ b/java/org/apache/catalina/util/FileUtil.java @@ -26,8 +26,8 @@ public class FileUtil { public FileUtil(File f) throws IOException { String path = f.getCanonicalPath(); - if (!path.endsWith(File.pathSeparator)) { - path += File.pathSeparatorChar; + if (!path.endsWith(File.separator)) { + path += File.separatorChar; } canonicalPath = path; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org