Author: toad
Date: 2006-12-14 02:33:11 +0000 (Thu, 14 Dec 2006)
New Revision: 11391
Modified:
trunk/freenet/src/freenet/pluginmanager/PluginManager.java
Log:
it's not voodoo... but do it for everything
Modified: trunk/freenet/src/freenet/pluginmanager/PluginManager.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/PluginManager.java 2006-12-14
01:00:40 UTC (rev 11390)
+++ trunk/freenet/src/freenet/pluginmanager/PluginManager.java 2006-12-14
02:33:11 UTC (rev 11391)
@@ -342,12 +342,13 @@
// Handle automatic fetching of pluginclassname
if (realClass.equals("*")) {
- if (realURL.startsWith("file:")) {
- URI liburi =
URIPreEncoder.encodeURI(realURL);
- if(logMINOR) Logger.minor(this,
"file: URI voodoo: "+realURL+" -> "+liburi.toString());
- realURL = liburi.toString();
- }
+ // Clean URL
+ URI liburi =
URIPreEncoder.encodeURI(realURL);
+ if(logMINOR)
+ Logger.minor(this,
"cleaned url: "+realURL+" -> "+liburi.toString());
+ realURL = liburi.toString();
+
URL url = new URL("jar:"+realURL+"!/");
JarURLConnection jarConnection =
(JarURLConnection)url.openConnection();
// Java seems to cache even file:
urls...