X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Fadmin%2Fsupport%2FSupportUserDetailsPage.java;h=5f626b4ef5d24e3c78a8c7afea46843e664b91f3;hp=7ab65b329f351da4a5194fb2f968d8103e026852;hb=a4a022f3ef3f697298fca60520d422d8662ec706;hpb=b885f9bde0cb9e4b08070d2fae14eeca00923d3a diff --git a/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java b/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java index 7ab65b32..5f626b4e 100644 --- a/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java +++ b/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java @@ -30,6 +30,9 @@ public class SupportUserDetailsPage extends Page { @Override public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { int id = -1; + if ( !req.getPathInfo().endsWith("/")) { + resp.sendError(404); + } String[] idP = req.getPathInfo().split("/"); try { id = Integer.parseInt(idP[idP.length - 1]); @@ -49,9 +52,11 @@ public class SupportUserDetailsPage extends Page { @Override public boolean next(Language l, Map vars) { for (; i < addrs.length;) { - String address = addrs[i++].getAddress(); + EmailAddress secAddress = addrs[i++]; + String address = secAddress.getAddress(); if ( !address.equals(user.getEmail())) { vars.put("secmail", address); + vars.put("status", l.getTranslation(secAddress.isVerified() ? "verified" : "not verified")); return true; } }