提交 12eda4f6 编写于 作者: S stephenconnolly

oops, forgot the slashes themselves ;-)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18258 71c3de6d-444a-0410-be80-ed276b4c234a
上级 be30ca6f
......@@ -115,9 +115,21 @@ public class Sventon2 extends SubversionRepositoryBrowser {
throws UnsupportedEncodingException
{
StringBuilder buf = new StringBuilder( );
if (path.startsWith("/")) {
buf.append('/');
}
boolean first = true;
for (String pathElement: path.split( "/" )) {
if (first) {
first = false;
} else {
buf.append('/');
}
buf.append(URLEncoder.encode(pathElement, URL_CHARSET));
}
if (path.endsWith("/")) {
buf.append('/');
}
return buf.toString();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册