This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch struts-2-5-x in repository https://gitbox.apache.org/repos/asf/struts.git
The following commit(s) were added to refs/heads/struts-2-5-x by this push: new cb5e55b WW-5116 Fix wrong regex range new 39d70e3 Merge pull request #472 from Marcono1234/struts-2-5-x cb5e55b is described below commit cb5e55b06c48e1cbff5ebcb19922e33ecaf19e47 Author: Marcono1234 <marcono1...@users.noreply.github.com> AuthorDate: Fri Feb 5 22:50:53 2021 +0100 WW-5116 Fix wrong regex range --- core/src/main/java/org/apache/struts2/result/PostbackResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/struts2/result/PostbackResult.java b/core/src/main/java/org/apache/struts2/result/PostbackResult.java index 1a275d5..47a176c 100644 --- a/core/src/main/java/org/apache/struts2/result/PostbackResult.java +++ b/core/src/main/java/org/apache/struts2/result/PostbackResult.java @@ -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;