forked from I2P_Developers/i2p.i2p
Fix 302 redirect so that it encodes the URI path properly.
This commit is contained in:
@@ -296,7 +296,7 @@ public class ResourceHandler extends AbstractHttpHandler
|
|||||||
log.debug("Redirect to directory/");
|
log.debug("Redirect to directory/");
|
||||||
|
|
||||||
String q=request.getQuery();
|
String q=request.getQuery();
|
||||||
StringBuffer buf=request.getRequestURL();
|
StringBuffer buf = URI.encodePath(null, request.getRequestURL().toString());
|
||||||
if (q!=null&&q.length()!=0)
|
if (q!=null&&q.length()!=0)
|
||||||
{
|
{
|
||||||
buf.append('?');
|
buf.append('?');
|
||||||
|
Reference in New Issue
Block a user