Skip to content
Permalink
Browse files

JENKINS-38067 encode URLs with Util.encode (#2)

  • Loading branch information...
i386 committed Sep 10, 2016
1 parent 65bc89b commit 3bdd80634e0afb84b320112395f32f7f73de1296
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/org/jenkinsci/plugins/displayurlapi/DisplayURLProvider.java
@@ -51,7 +51,7 @@ public static DisplayURLProvider get() {
static class ClassicDisplayURLProvider extends DisplayURLProvider {
@Override
public String getRunURL(Run<?, ?> run) {
return getRoot() + run.getUrl();
return getRoot() + Util.encode(run.getUrl());
}

@Override
@@ -61,7 +61,7 @@ public String getChangesURL(Run<?, ?> run) {

@Override
public String getJobURL(Job<?, ?> project) {
return getRoot() + project.getUrl();
return getRoot() + Util.encode(project.getUrl());
}

@Override
@@ -74,7 +74,7 @@ public String getRoot() {
if (root == null) {
root = "http://unconfigured-jenkins-location/";
}
return root;
return Util.encode(root);
}

@Override

0 comments on commit 3bdd806

Please sign in to comment.
You can’t perform that action at this time.