From: David ‘Bombe’ Roden Date: Thu, 2 Dec 2010 19:00:56 +0000 (+0100) Subject: Don’t create invalid local Sones! X-Git-Tag: 0.3.2-RC4~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9d1850109530c2b1be56f5a7eb2f4db29141b6b5;p=Sone.git Don’t create invalid local Sones! --- diff --git a/src/main/java/net/pterodactylus/sone/web/LoginPage.java b/src/main/java/net/pterodactylus/sone/web/LoginPage.java index c34d8ca..dcfd8a7 100644 --- a/src/main/java/net/pterodactylus/sone/web/LoginPage.java +++ b/src/main/java/net/pterodactylus/sone/web/LoginPage.java @@ -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");