[Improvement] Fix the git url command injection in pytorch,format code style task(#15873)
This commit is contained in:
parent
81340f1723
commit
0a522085c0
|
|
@ -73,7 +73,7 @@ public class PytorchTaskTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testGitProjectUrlInjection(){
|
||||
public void testGitProjectUrlInjection() {
|
||||
Assertions.assertFalse(GitProjectManager.isGitPath("git@& cat /etc/passwd >/poc.txt #"));
|
||||
Assertions.assertFalse(GitProjectManager.isGitPath("git@| cat /etc/passwd >/poc.txt #"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue