Robbert Noordzij
2014-10-07 e7e8bd8af341719b7cb902c7861ea198f5db43a6
Bug in the rawservlet in extracting the repository out of the path. The
offset for finding the next slash should be the current slash + 1, not
the last offset + the offset of the current slash.
1 files modified
2 ■■■ changed files
src/main/java/com/gitblit/servlet/RawServlet.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/gitblit/servlet/RawServlet.java
@@ -172,7 +172,7 @@
            } 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