]> source.dussan.org Git - gitblit.git/commitdiff
Critical fix for servlet.
authorJames Moger <james.moger@gitblit.com>
Thu, 19 May 2011 23:01:45 +0000 (19:01 -0400)
committerJames Moger <james.moger@gitblit.com>
Thu, 19 May 2011 23:01:45 +0000 (19:01 -0400)
src/com/gitblit/GitBlitServlet.java

index 17642c66e0a0f3b8ab62edee77bc2f9619f153b0..f703cb2ecea52ced850b7722ac5bce3210d97e4b 100644 (file)
@@ -42,7 +42,7 @@ public class GitBlitServlet extends GitServlet {
                if (forwardSlash > -1) {\r
                        String repository = url.substring(0, forwardSlash);\r
                        String function = url.substring(forwardSlash + 1);\r
-                       String query = req.getQueryString();\r
+                       String query = req.getQueryString() == null ? "":req.getQueryString();                  \r
                        RepositoryModel model = GitBlit.self().getRepositoryModel(repository);\r
                        if (model != null) {                            \r
                                if (model.isFrozen || model.accessRestriction.atLeast(AccessRestrictionType.PUSH)) {\r