Author: markt
Date: Fri Jul 3 19:21:17 2015
New Revision: 1689070
URL: http://svn.apache.org/r1689070
Log:
Meaningful name for variable
Patch by fjodorver
Modified:
tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/provider/modules/FormAuthModule.java
Modified:
tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/provider/modules/FormAuthModule.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/provider/modules/FormAuthModule.java?rev=1689070&r1=1689069&r2=1689070&view=diff
==============================================================================
---
tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/provider/modules/FormAuthModule.java
(original)
+++
tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/provider/modules/FormAuthModule.java
Fri Jul 3 19:21:17 2015
@@ -242,11 +242,11 @@ public class FormAuthModule extends Tomc
// Redirect the user to the original request URI (which will cause
// the original request to be restored)
- requestURI = savedRequestURL(session);
+ String savedRequestUrl = savedRequestURL(session);
if (log.isDebugEnabled()) {
- log.debug("Redirecting to original '" + requestURI + "'");
+ log.debug("Redirecting to original '" + savedRequestUrl + "'");
}
- if (requestURI == null) {
+ if (savedRequestUrl == null) {
if (landingPage == null) {
response.sendError(HttpServletResponse.SC_BAD_REQUEST,
sm.getString("authenticator.formlogin"));
@@ -267,7 +267,7 @@ public class FormAuthModule extends Tomc
// to
// use.
Response internalResponse = request.getResponse();
- String location = response.encodeRedirectURL(requestURI);
+ String location = response.encodeRedirectURL(savedRequestUrl);
if ("HTTP/1.1".equals(request.getProtocol())) {
internalResponse.sendRedirect(location,
HttpServletResponse.SC_SEE_OTHER);
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]