Skip to content

Commit

Permalink
JENKINS-38067 encode URLs with Util.encode
Browse files Browse the repository at this point in the history
  • Loading branch information
i386 committed Sep 8, 2016
1 parent 5da2f6f commit 84b3393
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -74,7 +74,7 @@ public String getRoot() {
if (root == null) {
root = "http://unconfigured-jenkins-location/";
}
return root;
return Util.encode(root);
}

@Override
Expand Down

0 comments on commit 84b3393

Please sign in to comment.