Author: toad
Date: 2008-11-28 21:09:08 +0000 (Fri, 28 Nov 2008)
New Revision: 23964
Modified:
trunk/freenet/src/freenet/pluginmanager/PluginManager.java
Log:
Don't try to load the plugin from a file just because it starts with the name
of a root, if it doesn't exist it could still be a URL. (Partly reinstates
behaviour prior to 23924).
Modified: trunk/freenet/src/freenet/pluginmanager/PluginManager.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/PluginManager.java 2008-11-28
20:49:21 UTC (rev 23963)
+++ trunk/freenet/src/freenet/pluginmanager/PluginManager.java 2008-11-28
21:09:08 UTC (rev 23964)
@@ -216,7 +216,7 @@
File[] roots = File.listRoots();
for(File f : roots) {
- if(pluginname.startsWith(f.getName())) {
+ if(pluginname.startsWith(f.getName()) && new
File(pluginname).exists()) {
startPluginFile(pluginname, store);
return;
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs