mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
absolute path shouldn't resolve from the current parent.
This commit is contained in:
1 parent
c6ec700658
commit
7d169eb41a
1 file changed
+3
-1
@@ -144,7 +144,9 @@ public abstract class ItemGroupMixIn {
|
||||
String from = req.getParameter("from");
|
||||
|
||||
// resolve a name to Item
|
||||
Item src = parent.getItem(from);
|
||||
Item src = null;
|
||||
if (!from.startsWith("/"))
|
||||
src = parent.getItem(from);
|
||||
if (src==null)
|
||||
src = Hudson.getInstance().getItemByFullName(from);
|
||||
|
||||
|
||||
Reference in new issue
Block a user