diff options
author | Robbert Noordzij <robbert@xseeding.nl> | 2014-10-07 12:14:27 +0200 |
---|---|---|
committer | Robbert Noordzij <robbert@xseeding.nl> | 2014-10-07 12:14:27 +0200 |
commit | e7e8bd8af341719b7cb902c7861ea198f5db43a6 (patch) | |
tree | 1ba701a5b1b8f8f0b5cba51a21396b2ce2c919d7 /src/main/java/com/gitblit/servlet/RawServlet.java | |
parent | 498351b0a1f674bf5e665addfb4c68be9720158e (diff) | |
download | gitblit-e7e8bd8af341719b7cb902c7861ea198f5db43a6.tar.gz gitblit-e7e8bd8af341719b7cb902c7861ea198f5db43a6.zip |
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.
Diffstat (limited to 'src/main/java/com/gitblit/servlet/RawServlet.java')
-rw-r--r-- | src/main/java/com/gitblit/servlet/RawServlet.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/servlet/RawServlet.java b/src/main/java/com/gitblit/servlet/RawServlet.java index 9fb96a5d..ac77646f 100644 --- a/src/main/java/com/gitblit/servlet/RawServlet.java +++ b/src/main/java/com/gitblit/servlet/RawServlet.java @@ -172,7 +172,7 @@ public class RawServlet extends DaggerServlet { } 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 |