]> source.dussan.org Git - gitblit.git/commit
raw: Strip leading and trailing slash from repo and path names for link
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Wed, 4 Nov 2020 19:35:31 +0000 (20:35 +0100)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Mon, 9 Nov 2020 22:19:53 +0000 (23:19 +0100)
commitdd56cd85715d0b8f6d9dfaca468f9589868cbded
treebf1ab9c35473b0fad99b33208e85772e4f2ce519
parenta02159e6378d63d0e1ad3c04a05462d9fc62fe89
raw: Strip leading and trailing slash from repo and path names for link

When creating a link for raw display, a trailing slash is stripped from
the end of the base URL. Also do this for the repository, as well as
stripping leading slashes from the repository and the path values.
src/main/java/com/gitblit/servlet/RawServlet.java
src/test/java/com/gitblit/servlet/RawServletTest.java [new file with mode: 0644]
src/test/java/com/gitblit/tests/mock/MockGitblitContext.java [new file with mode: 0644]