Author: nextgens
Date: 2006-06-05 11:40:54 +0000 (Mon, 05 Jun 2006)
New Revision: 9057
Modified:
trunk/freenet/src/freenet/clients/http/PluginToadlet.java
Log:
Fix the infamous "CSS bug" on the PluginToadlet
Modified: trunk/freenet/src/freenet/clients/http/PluginToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/PluginToadlet.java 2006-06-05
08:32:43 UTC (rev 9056)
+++ trunk/freenet/src/freenet/clients/http/PluginToadlet.java 2006-06-05
11:40:54 UTC (rev 9057)
@@ -73,6 +73,7 @@
return;
}
writeReply(ctx, 220, "text/html; charset=utf-8", "OK",
createBox(ctx, "Plugin not found", "The requested plugin could not be
found.").toString());
+ return;
}
String action = httpRequest.getParam("action");
@@ -103,11 +104,13 @@
pluginManager.removePlugin(plugin);
pluginManager.addPlugin(plugin.getClass().getName());
writePermanentRedirect(ctx, "Plugin list",
"?action=list");
+ return;
} else if ("unload".equals(action)) {
pluginName = httpRequest.getParam("pluginName");
Plugin plugin = findPlugin(pluginName);
pluginManager.removePlugin(plugin);
writePermanentRedirect(ctx, "Plugin list",
"?action=list");
+ return;
}
writeReply(ctx, 220, "text/html; charset=utf-8", "OK",
replyBuffer.toString());
}