(refs #984)Fix special character problem in repository viewer

This commit is contained in:
Naoki Takezoe
2016-01-16 14:27:44 +09:00
parent f991f3b454
commit 15e8527e01

View File

@@ -115,7 +115,7 @@
}</span>@file.name.split("/").toList.last }</span>@file.name.split("/").toList.last
</a> </a>
} else { } else {
<a href="@url(repository)/tree@{(encodeRefName(branch) :: pathList).mkString("/", "/", "/")}@file.name"> <a href="@url(repository)/tree@{(branch :: pathList).map(encodeRefName).mkString("/", "/", "/")}@{encodeRefName(file.name)}">
<span class="simplified-path">@file.name.split("/").toList.init match { <span class="simplified-path">@file.name.split("/").toList.init match {
case Nil => {} case Nil => {}
case list => {@list.mkString("", "/", "/")} case list => {@list.mkString("", "/", "/")}