Author: toad
Date: 2008-04-05 14:59:33 +0000 (Sat, 05 Apr 2008)
New Revision: 19033

Modified:
   trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
Log:
Fix #2206: we were sending the unescaped URI over an ISO-8859-1 connection 
(HTTP), and of course wierd chars were turned into ?'s.

Modified: trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/FProxyToadlet.java   2008-04-05 
14:36:10 UTC (rev 19032)
+++ trunk/freenet/src/freenet/clients/http/FProxyToadlet.java   2008-04-05 
14:59:33 UTC (rev 19033)
@@ -432,7 +432,7 @@
                        if(Logger.shouldLog(Logger.MINOR, this))
                                Logger.minor(this, "Failed to fetch "+uri+" : 
"+e);
                        if(e.newURI != null) {
-                               Toadlet.writePermanentRedirect(ctx, msg, '/' 
+e.newURI.toString() + override);
+                               Toadlet.writePermanentRedirect(ctx, msg, '/' 
+e.newURI.toACIIString() + override);
                        } else if(e.mode == FetchException.TOO_BIG) {
                                HTMLNode pageNode = 
ctx.getPageMaker().getPageNode(l10n("fileInformationTitle"), ctx);
                                HTMLNode contentNode = 
ctx.getPageMaker().getContentNode(pageNode);


Reply via email to