summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-10-25 08:56:23 -0400
committerJames Moger <james.moger@gitblit.com>2013-10-25 08:56:23 -0400
commit91fcabfb47311b4f902b1e3ae3a3da4abe4c05b8 (patch)
tree17e9a62dbf03755094cfd6c774c7168bbbf34b3c /src/main/java
parente6bf0b1986a07be7d35400ced44744cadb23b429 (diff)
downloadgitblit-91fcabfb47311b4f902b1e3ae3a3da4abe4c05b8.tar.gz
gitblit-91fcabfb47311b4f902b1e3ae3a3da4abe4c05b8.zip
Respect web.forwardSlashCharacter in intra-Markdown links (issue-324)
Change-Id: I27482c223a3daa0d10f37e88cd80481c6e1eb4b0
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/RepositoryPage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java
index 3b1d296b..157f9e7c 100644
--- a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java
@@ -660,7 +660,8 @@ public abstract class RepositoryPage extends RootPage {
@Override
public Rendering render(WikiLinkNode node) {
try {
- String path = URLEncoder.encode(node.getText().replace(' ', '-'), "UTF-8");
+ String fsc = GitBlit.getString(Keys.web.forwardSlashCharacter, "/");
+ String path = URLEncoder.encode(node.getText().replace(' ', '-'), "UTF-8").replace("%2F", fsc);
String name = node.getText();
if (name.indexOf('/') > -1) {
name = name.substring(name.lastIndexOf('/') + 1);