Skip to content

Commit

Permalink
Bug in the rawservlet in extracting the repository out of the path. The
Browse files Browse the repository at this point in the history
offset for finding the next slash should be the current slash + 1, not
the last offset + the offset of the current slash.
  • Loading branch information
Robbert Noordzij committed Oct 7, 2014
1 parent 498351b commit e7e8bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/gitblit/servlet/RawServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private void processRequest(HttpServletRequest request, HttpServletResponse resp
} else {
repository = path.substring(0, slash);
}
offset += ( slash + 1 );
offset = ( slash + 1 );
r = repositoryManager.getRepository(repository, false);
if (repository.equals(path)) {
// either only repository in url or no repository found
Expand Down

0 comments on commit e7e8bd8

Please sign in to comment.