diff --git a/cws-service/src/main/java/jpl/cws/controller/MvcService.java b/cws-service/src/main/java/jpl/cws/controller/MvcService.java index fd7208ed..08157b58 100644 --- a/cws-service/src/main/java/jpl/cws/controller/MvcService.java +++ b/cws-service/src/main/java/jpl/cws/controller/MvcService.java @@ -101,18 +101,18 @@ public ModelAndView logintotarget( .singleResult(); log.debug("user: " + user); - String pattern = // first part: some/relative/path - "^" // Anchor at the beginning of the string - + "(?!\\/)" // Assert the first character isn't a '/' (negative lookahead) - + "(?!.*\\/\\/)" // Assert there are no "//" present anywhere (negative lookahead) - + "[A-Za-z0-9-\\/]+" // Match one or more allowed characters - + "(?