- protected void processTemplate(Request request, Template template) throws RedirectException {
- super.processTemplate(request, template);
- String soneId = request.getHttpRequest().getParam("sone");
- Sone sone = webInterface.core().getSone(soneId);
- if (!(sone instanceof SoneShell)) {
+ protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
+ super.processTemplate(request, templateContext);
+ if (request.getMethod() == Method.POST) {
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);