Browse Source

Merge branch 'ticket/113' into develop

tags/v1.7.0
James Moger 10 years ago
parent
commit
0fd37157bc
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/main/java/com/gitblit/wicket/pages/BlobPage.java

+ 5
- 0
src/main/java/com/gitblit/wicket/pages/BlobPage.java View File

@@ -21,6 +21,7 @@ import java.util.Map;
import org.apache.wicket.Component;
import org.apache.wicket.PageParameters;
import org.apache.wicket.RedirectException;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.image.Image;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
@@ -52,6 +53,10 @@ public class BlobPage extends RepositoryPage {
final String blobPath = WicketUtils.getPath(params);
String [] encodings = getEncodings();
if (StringUtils.isEmpty(objectId) && StringUtils.isEmpty(blobPath)) {
throw new RedirectException(TreePage.class, WicketUtils.newRepositoryParameter(repositoryName));
}
if (StringUtils.isEmpty(blobPath)) {
// blob by objectid

Loading…
Cancel
Save