Evolve, document how the URI path fix works. Fix 302 redirects so they URL encode properly. bump to -1

This commit is contained in:
sponge
2010-12-26 20:45:29 +00:00
parent 923c3d8b4c
commit 965b2611b3
4 changed files with 31 additions and 3 deletions

View File

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