Changed getEncodedLocation() to getLocationEncoded() because I like it
more. git-svn-id: https://samskivert.googlecode.com/svn/trunk@129 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: UserManager.java,v 1.6 2001/05/26 23:18:11 mdb Exp $
|
||||
// $Id: UserManager.java,v 1.7 2001/05/26 23:20:38 mdb Exp $
|
||||
|
||||
package com.samskivert.servlet.user;
|
||||
|
||||
@@ -129,7 +129,7 @@ public class UserManager
|
||||
// the login page
|
||||
if (user == null) {
|
||||
// first construct the redirect URL
|
||||
String eurl = RequestUtils.getEncodedLocation(req);
|
||||
String eurl = RequestUtils.getLocationEncoded(req);
|
||||
String target = StringUtil.replace(_loginURL, "%R", eurl);
|
||||
throw new RedirectException(target);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: RequestUtils.java,v 1.1 2001/05/26 23:18:11 mdb Exp $
|
||||
// $Id: RequestUtils.java,v 1.2 2001/05/26 23:20:38 mdb Exp $
|
||||
|
||||
package com.samskivert.servlet.util;
|
||||
|
||||
@@ -20,7 +20,7 @@ public class RequestUtils
|
||||
*
|
||||
* @return The URL encoded URL that represents our current location.
|
||||
*/
|
||||
public static String getEncodedLocation (HttpServletRequest req)
|
||||
public static String getLocationEncoded (HttpServletRequest req)
|
||||
{
|
||||
return URLEncoder.encode(getLocation(req));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user