Merge pull request #471 from Marcono1234/patch-1

WW-5116: Fix wrong regex range
This commit is contained in:
Lukasz Lenart
2021-02-08 07:26:35 +01:00
committed by GitHub
@@ -152,7 +152,7 @@ public class PostbackResult extends StrutsResultSupport {
} else {
String location = getLocation();
// Do not prepend if the URL is a FQN
if (!location.matches("^([a-zA-z]+:)?//.*")) {
if (!location.matches("^([a-zA-Z]+:)?//.*")) {
// If the URL is relative to the servlet context, prepend the servlet context path
if (prependServletContext && (request.getContextPath() != null) && (request.getContextPath().length() > 0)) {
location = request.getContextPath() + location;