From d1e1cc72a3f2432900164973395aaf9b829066a4 Mon Sep 17 00:00:00 2001 From: Ahad Mammadov Date: Tue, 17 Dec 2024 10:33:11 -0500 Subject: [PATCH] rawEncoding getSafeName within getRelativePathFrom in TestObject.java --- src/main/java/hudson/tasks/test/TestObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hudson/tasks/test/TestObject.java b/src/main/java/hudson/tasks/test/TestObject.java index 2075dc71..a2407f45 100644 --- a/src/main/java/hudson/tasks/test/TestObject.java +++ b/src/main/java/hudson/tasks/test/TestObject.java @@ -161,7 +161,7 @@ public String getRelativePathFrom(TestObject it) { while (next != null && it != next) { cur = next; buf.insert(0, '/'); - buf.insert(0, cur.getSafeName()); + buf.insert(0, Util.rawEncode(cur.getSafeName())); next = cur.getParent(); } if (it == next) {