Skip to content

Commit d41a3ba

Browse files
authored
Merge pull request #703 from stevebosman-oc/issue_702
#702 fix failing unit test on macOS
2 parents d942305 + d2bb072 commit d41a3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/owasp/esapi/reference/ValidatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public void testIsValidDirectoryPathGHSL_POC() throws IOException {
404404

405405
String invalidPath = tempFolder.newFolder("esapi-test2").getAbsolutePath();
406406
File parent = tempFolder.newFolder("sibling-of-esapi-test2");
407-
String validPath = tempFolder.newFolder("sibling-of-esapi-test2", "child").getAbsolutePath();
407+
String validPath = tempFolder.newFolder("sibling-of-esapi-test2", "child").getCanonicalPath();
408408

409409
// Before the fix, this incorrectly would return 'true' even though
410410
// 'esapi-test2' directory clearly was not within the 'esapi-test'

0 commit comments

Comments
 (0)