Skip to content

Commit 06c503c

Browse files
committed
[Misc] Fix the test for Java 11
1 parent 3643ed5 commit 06c503c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/internal/template/TemplateManagerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void templateWithoutScriptRight() throws Exception
186186
@Test
187187
void templateCheatingProtection() throws Exception
188188
{
189-
when(this.environmentMock.getResource("/templates/../secure[]")).thenReturn(new URL("file://secure[]"));
189+
when(this.environmentMock.getResource("/templates/../secure[]")).thenReturn(new URL("file://secure%5B%5D"));
190190
when(this.environmentMock.getResourceAsStream("/templates/../template[]"))
191191
.thenReturn(new ByteArrayInputStream("source".getBytes("UTF8")));
192192

0 commit comments

Comments
 (0)