From 0a522085c09bdbef24bb36acf52d43f28e3df948 Mon Sep 17 00:00:00 2001 From: cntigers Date: Wed, 8 May 2024 09:19:23 +0800 Subject: [PATCH] [Improvement] Fix the git url command injection in pytorch,format code style task(#15873) --- .../dolphinscheduler/plugin/task/pytorch/PytorchTaskTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-task-plugin/dolphinscheduler-task-pytorch/src/test/java/org/apache/dolphinscheduler/plugin/task/pytorch/PytorchTaskTest.java b/dolphinscheduler-task-plugin/dolphinscheduler-task-pytorch/src/test/java/org/apache/dolphinscheduler/plugin/task/pytorch/PytorchTaskTest.java index 27fdd7699b..e35a175df1 100644 --- a/dolphinscheduler-task-plugin/dolphinscheduler-task-pytorch/src/test/java/org/apache/dolphinscheduler/plugin/task/pytorch/PytorchTaskTest.java +++ b/dolphinscheduler-task-plugin/dolphinscheduler-task-pytorch/src/test/java/org/apache/dolphinscheduler/plugin/task/pytorch/PytorchTaskTest.java @@ -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 #")); }