Skip to content

Commit

Permalink
Meaningful name for variable
Browse files Browse the repository at this point in the history
Patch by fjodorver

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1689070 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Jul 3, 2015
1 parent cae7339 commit 711d8e3
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -242,11 +242,11 @@ private AuthStatus validate(MessageInfo messageInfo, Subject clientSubject) thro

// 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"));
Expand All @@ -267,7 +267,7 @@ private AuthStatus validate(MessageInfo messageInfo, Subject clientSubject) thro
// 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 {
Expand Down

0 comments on commit 711d8e3

Please sign in to comment.