The new Sone IDs are longer than before.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 2 Nov 2010 05:32:51 +0000 (06:32 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 2 Nov 2010 05:32:51 +0000 (06:32 +0100)
src/main/java/net/pterodactylus/sone/web/FollowSonePage.java
src/main/java/net/pterodactylus/sone/web/UnfollowSonePage.java

index e438428..cfa60bb 100644 (file)
@@ -49,7 +49,7 @@ public class FollowSonePage extends SoneTemplatePage {
        protected void processTemplate(Request request, Template template) throws RedirectException {
                super.processTemplate(request, template);
                if (request.getMethod() == Method.POST) {
-                       String soneId = request.getHttpRequest().getPartAsStringFailsafe("sone", 36);
+                       String soneId = request.getHttpRequest().getPartAsStringFailsafe("sone", 44);
                        String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
                        Sone currentSone = getCurrentSone(request.getToadletContext());
                        Sone sone = webInterface.core().getSone(soneId);
index 61dd9d2..5c838a0 100644 (file)
@@ -49,7 +49,7 @@ public class UnfollowSonePage extends SoneTemplatePage {
        protected void processTemplate(Request request, Template template) throws RedirectException {
                super.processTemplate(request, template);
                if (request.getMethod() == Method.POST) {
-                       String soneId = request.getHttpRequest().getPartAsStringFailsafe("sone", 36);
+                       String soneId = request.getHttpRequest().getPartAsStringFailsafe("sone", 44);
                        String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
                        Sone currentSone = getCurrentSone(request.getToadletContext());
                        Sone sone = webInterface.core().getSone(soneId);