[Improvement] Fix the git url command injection in pytorch,format code style task(#15873)

This commit is contained in:
cntigers 2024-05-08 09:19:23 +08:00
parent 81340f1723
commit 0a522085c0
1 changed files with 1 additions and 1 deletions

View File

@ -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 #"));
}