]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java
UPD: Advanced wildcard syntax
[gigi.git] / src / org / cacert / gigi / pages / admin / support / SupportUserDetailsPage.java
index afacb56c86e3edbfda135e4aac6f2d746aace52a..924ba08b17c1c562808c1035518481160d8f296b 100644 (file)
@@ -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);
         }