Skip to content

Commit 571e9ea

Browse files
author
drighetto
committed
Debug UT
1 parent 03a4c10 commit 571e9ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/eu/righettod/TestSecurityUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ public void isPathSafe() {
540540
"%2Fhome%2F%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2Fetc%2Fpassword", //URL encoding X1
541541
"%252Fhome%252F%252E%252E%252F%252E%252E%252F%252E%252E%252F%252E%252E%252Fetc%252Fpassword", //URL encoding X2
542542
"%25252525252Fhome%25252525252F%25252525252E%25252525252E%25252525252F%25252525252E%25252525252E%25252525252F%25252525252E%25252525252E%25252525252F%25252525252E%25252525252E%25252525252Fetc%25252525252Fpassword", //URL encoding X6
543-
"/home/..\\/..\\/..\\/..\\/etc/password"
543+
"/home/..\\/..\\/..\\/..\\/etc/password",
544+
"/home/..\\\\/..\\/..\\\\/..\\/etc/password"
544545
);
545546
invalidPaths.forEach(p -> {
546547
assertFalse(SecurityUtils.isPathSafe(p), String.format(templateMsgFalseNegative, p));

0 commit comments

Comments
 (0)