X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Fadmin%2Fsupport%2FSupportUserDetailsPage.java;h=924ba08b17c1c562808c1035518481160d8f296b;hb=f0b9b09f6cc96110ec0974d085bd05bef403a9c6;hp=afacb56c86e3edbfda135e4aac6f2d746aace52a;hpb=20199b0674ff5acf61343b6640a1895fb54a9914;p=gigi.git diff --git a/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java b/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java index afacb56c..924ba08b 100644 --- a/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java +++ b/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java @@ -30,11 +30,7 @@ public class SupportUserDetailsPage extends Page { int id = -1; String[] idP = req.getPathInfo().split("/"); try { - if (req.getPathInfo().endsWith("history") || req.getPathInfo().endsWith("trainings")) { - id = Integer.parseInt(idP[idP.length - 2]); - } else { - id = Integer.parseInt(idP[idP.length - 1]); - } + id = Integer.parseInt(idP[idP.length - 1]); } catch (NumberFormatException e) { resp.sendError(404); }