Use “returnPage” instead of “returnPath” everywhere. Fixes #60.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 17 Jan 2011 10:03:32 +0000 (11:03 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 17 Jan 2011 10:03:32 +0000 (11:03 +0100)
src/main/java/net/pterodactylus/sone/web/DistrustPage.java
src/main/java/net/pterodactylus/sone/web/TrustPage.java
src/main/java/net/pterodactylus/sone/web/UntrustPage.java

index 9cbbb55..4b14df0 100644 (file)
@@ -55,14 +55,14 @@ public class DistrustPage extends SoneTemplatePage {
        protected void processTemplate(Request request, DataProvider dataProvider) throws RedirectException {
                super.processTemplate(request, dataProvider);
                if (request.getMethod() == Method.POST) {
-                       String returnPath = request.getHttpRequest().getPartAsStringFailsafe("returnPath", 256);
+                       String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
                        String identity = request.getHttpRequest().getPartAsStringFailsafe("sone", 44);
                        Sone currentSone = getCurrentSone(request.getToadletContext());
                        Sone sone = webInterface.getCore().getSone(identity, false);
                        if (sone != null) {
                                webInterface.getCore().distrustSone(currentSone, sone);
                        }
-                       throw new RedirectException(returnPath);
+                       throw new RedirectException(returnPage);
                }
        }
 
index 85341ad..b74a2b6 100644 (file)
@@ -55,14 +55,14 @@ public class TrustPage extends SoneTemplatePage {
        protected void processTemplate(Request request, DataProvider dataProvider) throws RedirectException {
                super.processTemplate(request, dataProvider);
                if (request.getMethod() == Method.POST) {
-                       String returnPath = request.getHttpRequest().getPartAsStringFailsafe("returnPath", 256);
+                       String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
                        String identity = request.getHttpRequest().getPartAsStringFailsafe("sone", 44);
                        Sone currentSone = getCurrentSone(request.getToadletContext());
                        Sone sone = webInterface.getCore().getSone(identity, false);
                        if (sone != null) {
                                webInterface.getCore().trustSone(currentSone, sone);
                        }
-                       throw new RedirectException(returnPath);
+                       throw new RedirectException(returnPage);
                }
        }
 
index cc9e26d..9d071b8 100644 (file)
@@ -55,14 +55,14 @@ public class UntrustPage extends SoneTemplatePage {
        protected void processTemplate(Request request, DataProvider dataProvider) throws RedirectException {
                super.processTemplate(request, dataProvider);
                if (request.getMethod() == Method.POST) {
-                       String returnPath = request.getHttpRequest().getPartAsStringFailsafe("returnPath", 256);
+                       String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
                        String identity = request.getHttpRequest().getPartAsStringFailsafe("sone", 44);
                        Sone currentSone = getCurrentSone(request.getToadletContext());
                        Sone sone = webInterface.getCore().getSone(identity, false);
                        if (sone != null) {
                                webInterface.getCore().untrustSone(currentSone, sone);
                        }
-                       throw new RedirectException(returnPath);
+                       throw new RedirectException(returnPage);
                }
        }