From cb75af767263afb0182c513a2887ed5ec4ccc785 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 29 Oct 2010 09:13:18 +0200 Subject: [PATCH] Fix creation at given URIs. --- src/main/java/net/pterodactylus/sone/web/CreateSonePage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java index f977556..dfd3760 100644 --- a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java +++ b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java @@ -65,7 +65,7 @@ public class CreateSonePage extends SoneTemplatePage { String insertUri = null; if (request.getMethod() == Method.POST) { name = request.getHttpRequest().getPartAsStringFailsafe("name", 100); - if (request.getHttpRequest().getParam("create-from-uri").length() > 0) { + if (request.getHttpRequest().isPartSet("create-from-uri")) { requestUri = request.getHttpRequest().getPartAsStringFailsafe("request-uri", 256); insertUri = request.getHttpRequest().getPartAsStringFailsafe("insert-uri", 256); } -- 2.7.4