Skip to content

Commit

Permalink
code: Fix missing urlencoding of repository url path
Browse files Browse the repository at this point in the history
See: Yona Github issue #286
  • Loading branch information
doortts committed Sep 24, 2017
1 parent 423de76 commit 799e29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/CodeApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static String getURL(Project project) {
if (project == null) {
return null;
} else if (RepositoryService.VCS_GIT.equals(project.vcs)) {
return utils.Url.createWithContext(Arrays.asList(project.owner, encodeUrlString(project.name)));
return utils.Url.createWithContext(Arrays.asList(encodeUrlString(project.owner), encodeUrlString(project.name)));
} else if (RepositoryService.VCS_SUBVERSION.equals(project.vcs)) {
return utils.Url.createWithContext(Arrays.asList("svn", project.owner, project.name));
} else {
Expand Down

0 comments on commit 799e29e

Please sign in to comment.