]> source.dussan.org Git - gitblit.git/commit
raw: Fix raw links to branches with a slash in their name
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Mon, 9 Nov 2020 22:08:22 +0000 (23:08 +0100)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Mon, 9 Nov 2020 23:05:07 +0000 (00:05 +0100)
commit6876537c856dda897f081430bb11b394f8b291bb
treeb587da62023fcde2e6d905ea019a38f9f9fafd1e
parent3212dc014c445425cc09f8d92065f1afb4e53065
raw: Fix raw links to branches with a slash in their name

When a branch has a slash in the name, the raw servlet was not able
to find the path under that branch. This is due to the replacement of
the forward slash character for URLs. It was not taken into account
when comparing the branch name later.

This fixes #1290 and its duplicates #1234 and #813.
src/main/java/com/gitblit/servlet/RawServlet.java
src/test/java/com/gitblit/servlet/RawServletTest.java