Skip to content

Commit

Permalink
Merge pull request #1862 from scireum/feature/jvo/Regex
Browse files Browse the repository at this point in the history
Referer Regex
  • Loading branch information
jakobvogel authored Oct 25, 2023
2 parents 4bd443b + dbd7ac8 commit faa8c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/sirius/biz/web/BizController.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) + ")$");
}

/**
Expand Down

0 comments on commit faa8c7b

Please sign in to comment.