From cefac9ec81878dfdbbcb0d13843cb2c4430786bc Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 8 Sep 2014 16:22:42 -0400 Subject: [PATCH] Fix value discarding bug in SafeTextModel --- src/main/java/com/gitblit/wicket/SafeTextModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gitblit/wicket/SafeTextModel.java b/src/main/java/com/gitblit/wicket/SafeTextModel.java index aef7e97a..5dc1854d 100644 --- a/src/main/java/com/gitblit/wicket/SafeTextModel.java +++ b/src/main/java/com/gitblit/wicket/SafeTextModel.java @@ -23,7 +23,7 @@ public class SafeTextModel implements IModel { } public static SafeTextModel none(String value) { - return new SafeTextModel(Mode.none); + return new SafeTextModel(value, Mode.none); } public static SafeTextModel relaxed() { @@ -31,7 +31,7 @@ public class SafeTextModel implements IModel { } public static SafeTextModel relaxed(String value) { - return new SafeTextModel(Mode.relaxed); + return new SafeTextModel(value, Mode.relaxed); } public SafeTextModel(Mode mode) { -- 2.39.5