On Wed, Jan 7, 2009 at 7:17 AM, <[email protected]> wrote: > Author: toad > Date: 2009-01-06 23:17:19 +0000 (Tue, 06 Jan 2009) > New Revision: 24946 > > Modified: > trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java > Log: > Doh > > > Modified: > trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java > =================================================================== > --- > trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java > 2009-01-06 21:55:28 UTC (rev 24945) > +++ > trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java > 2009-01-06 23:17:19 UTC (rev 24946) > @@ -252,7 +252,7 @@ > } > if(u.getFragment() != null) { > sb.append('#'); > - > sb.append(freenet.support.URLEncoder.encode(u.getRawFragment(), false)); > + > sb.append(freenet.support.URLEncoder.encode(u.getFragment(), false));
why not just use getRawFragment() ? the javadoc say it is encoded and never contain illegal characters: The .... getRawFragment.... methods return the values ... The strings returned by these methods may contain both escaped octets and other characters, and will not contain any illegal characters. > } > > URI uri = new URI(sb.toString()); > > _______________________________________________ > cvs mailing list > [email protected] > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs > _______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
