Fix 302 redirect so that it encodes the URI path properly.

This commit is contained in:
sponge
2010-12-26 18:45:13 +00:00
parent 925f9d0a28
commit 923c3d8b4c

View File

@ -296,7 +296,7 @@ public class ResourceHandler extends AbstractHttpHandler
log.debug("Redirect to directory/");
String q=request.getQuery();
StringBuffer buf=request.getRequestURL();
StringBuffer buf = URI.encodePath(null, request.getRequestURL().toString());
if (q!=null&&q.length()!=0)
{
buf.append('?');