This is an automated email from the ASF dual-hosted git repository. jochen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new fe7543e IO-556: Protecting against regression. fe7543e is described below commit fe7543eee5cd4b2f9e78aa44c31031b68eba204d Author: Jochen Wiedmann <jochen.wiedm...@gmail.com> AuthorDate: Fri Apr 9 21:19:34 2021 +0200 IO-556: Protecting against regression. --- src/test/java/org/apache/commons/io/FilenameUtilsTestCase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/apache/commons/io/FilenameUtilsTestCase.java b/src/test/java/org/apache/commons/io/FilenameUtilsTestCase.java index 559c111..ab1030b 100644 --- a/src/test/java/org/apache/commons/io/FilenameUtilsTestCase.java +++ b/src/test/java/org/apache/commons/io/FilenameUtilsTestCase.java @@ -272,6 +272,9 @@ public class FilenameUtilsTestCase { assertEquals(null, FilenameUtils.normalize("\\\\g:2:3:4:5:6:7:8\\a\\b\\c.txt")); assertEquals(null, FilenameUtils.normalize("\\\\1ffff:2:3:4:5:6:7:8\\a\\b\\c.txt")); assertEquals(null, FilenameUtils.normalize("\\\\1:2\\a\\b\\c.txt")); + // IO-556 + assertEquals(null, FilenameUtils.normalize("//../foo")); + assertEquals(null, FilenameUtils.normalize("\\\\..\\foo")); } /**