X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Fadmin%2Fsupport%2FSupportUserDetailsPage.java;h=924ba08b17c1c562808c1035518481160d8f296b;hp=afacb56c86e3edbfda135e4aac6f2d746aace52a;hb=6e172bef3d86590e54d48f11a3fad65c1d4d9cd6;hpb=23008e75449699a6b65b97e9144e88659bf5b7dd 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); }