Skip to content
Permalink
Browse files

JENKINS-38067 encode URLs with Util.encode

  • Loading branch information...
i386 committed Sep 8, 2016
1 parent 5da2f6f commit 84b33939e45544dbb5e2b1599c8ed5a08bbf510c
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 84b3393

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