Don’t create invalid local Sones!
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 2 Dec 2010 19:00:56 +0000 (20:00 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 2 Dec 2010 19:07:50 +0000 (20:07 +0100)
src/main/java/net/pterodactylus/sone/web/LoginPage.java

index c34d8ca..dcfd8a7 100644 (file)
@@ -68,7 +68,7 @@ public class LoginPage extends SoneTemplatePage {
                template.set("sones", localSones);
                if (request.getMethod() == Method.POST) {
                        String soneId = request.getHttpRequest().getPartAsStringFailsafe("sone-id", 100);
-                       Sone selectedSone = webInterface.getCore().getLocalSone(soneId);
+                       Sone selectedSone = webInterface.getCore().getLocalSone(soneId, false);
                        if (selectedSone != null) {
                                setCurrentSone(request.getToadletContext(), selectedSone);
                                throw new RedirectException("index.html");