WW-5116 Fix wrong regex range

This commit is contained in:
Marcono1234
2021-02-05 22:50:53 +01:00
parent ea23ce295a
commit cb5e55b06c
@@ -149,7 +149,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;