Merge branch 'stable-2.10' into stable-2.11

* stable-2.10:
  Fix NPE in GitWebServlet
  Update revision of the replication plugin

Change-Id: Ia34a94313f0b4500748a02e38b2b39c5c86afe55
This commit is contained in:
David Pursehouse 2015-04-15 18:07:56 +09:00
commit a853f7c148

View File

@ -360,16 +360,19 @@ class GitWebServlet extends HttpServlet {
}
final Map<String, String> params = getParameters(req);
if (deniedActions.contains(params.get("a"))) {
String a = params.get("a");
if (a != null) {
if (deniedActions.contains(a)) {
rsp.sendError(HttpServletResponse.SC_FORBIDDEN);
return;
}
if (params.get("a").equals(PROJECT_LIST_ACTION)) {
if (a.equals(PROJECT_LIST_ACTION)) {
rsp.sendRedirect(req.getContextPath() + "/#" + PageLinks.ADMIN_PROJECTS
+ "?filter=" + Url.encode(params.get("pf") + "/"));
return;
}
}
String name = params.get("p");
if (name == null) {