Protecting against regression.
MODIFY
src/test/java/org/apache/commons/io/FilenameUtilsTestCase.java
src/test/java/org/apache/commons/io/FilenameUtilsTestCase.java
@@ -272,6 +272,9 @@ public void testNormalize() {
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"));
}
/**

IO-556: Protecting against regression.