On Fri, Nov 28, 2008 at 6:37 AM,  <saces at freenetproject.org> wrote:
> Author: saces
> Date: 2008-11-27 22:37:29 +0000 (Thu, 27 Nov 2008)
> New Revision: 23924
>
> Modified:
>   trunk/freenet/src/freenet/pluginmanager/PluginManager.java
> Log:
> do not forward a possible local filename to url handler if file not exist

arrr... you are bring back a old bug.

I did this change on r22718 --
This break the "Reload" button on plugin page for unofficial plugin.

>
> Modified: trunk/freenet/src/freenet/pluginmanager/PluginManager.java
> ===================================================================
> --- trunk/freenet/src/freenet/pluginmanager/PluginManager.java  2008-11-27 
> 22:21:31 UTC (rev 23923)
> +++ trunk/freenet/src/freenet/pluginmanager/PluginManager.java  2008-11-27 
> 22:37:29 UTC (rev 23924)
> @@ -214,9 +214,12 @@
>                        // not a freenet key
>                }
>
> -               if(new File(pluginname).exists()) {
> -                       startPluginFile(pluginname, store);
> -                       return;
> +               File[] roots = File.listRoots();
> +               for(File f : roots) {
> +                       if(pluginname.startsWith(f.getName())) {
> +                               startPluginFile(pluginname, store);
> +                               return;
> +                       }
>                }
>
>                startPluginURL(pluginname, store);
>
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>

Reply via email to