diff --git a/src/main/java/sirius/biz/web/BizController.java b/src/main/java/sirius/biz/web/BizController.java index e2604b5c3..375a8a4e7 100644 --- a/src/main/java/sirius/biz/web/BizController.java +++ b/src/main/java/sirius/biz/web/BizController.java @@ -705,7 +705,7 @@ protected void redirectToSaneReferer(final WebContext webContext, Pattern patter * @see #redirectToSaneReferer(WebContext, Pattern, String) */ protected static Pattern createPatternForOverviewAndDetailRoutes(String overviewRoute, String detailRoutePrefix) { - return Pattern.compile("^(" + Pattern.quote(detailRoutePrefix) + "\\w+|" + Pattern.quote(overviewRoute) + ")$"); + return Pattern.compile("^(" + Pattern.quote(detailRoutePrefix) + "[0-9a-zA-Z_\\-]+|" + Pattern.quote(overviewRoute) + ")$"); } /**