This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.auth.form-1.0.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-auth-form.git
commit a25ef67f80932570438206588c387ff61cc59895 Author: Eric Norman <[email protected]> AuthorDate: Wed Feb 24 05:22:04 2010 +0000 SLING-1116 make sure the login form action is an absolute path git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/formauth@915677 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/sling/formauth/AuthenticationFormServlet.java | 1 + src/main/resources/org/apache/sling/formauth/login.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/formauth/AuthenticationFormServlet.java b/src/main/java/org/apache/sling/formauth/AuthenticationFormServlet.java index d08016a..34bed2b 100644 --- a/src/main/java/org/apache/sling/formauth/AuthenticationFormServlet.java +++ b/src/main/java/org/apache/sling/formauth/AuthenticationFormServlet.java @@ -112,6 +112,7 @@ public class AuthenticationFormServlet extends HttpServlet { form = form.replace("${resource}", getResource(request)); form = form.replace("${j_reason}", getReason(request)); + form = form.replace("${requestContextPath}", request.getContextPath()); return form; } diff --git a/src/main/resources/org/apache/sling/formauth/login.html b/src/main/resources/org/apache/sling/formauth/login.html index b9cb3d8..36d924d 100644 --- a/src/main/resources/org/apache/sling/formauth/login.html +++ b/src/main/resources/org/apache/sling/formauth/login.html @@ -58,7 +58,7 @@ <div id="main"><!-- Login Form --> <h3>Login:</h3> -<form id="loginform" method="POST" action="j_security_check" +<form id="loginform" method="POST" action="${requestContextPath}/j_security_check" enctype="multipart/form-data" accept-charset="UTF-8"> <input type="hidden" name="_charset_" value="UTF-8" /> -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
