]> source.dussan.org Git - gitblit.git/commitdiff
Fix value discarding bug in SafeTextModel 72/172/1
authorJames Moger <james.moger@gitblit.com>
Mon, 8 Sep 2014 20:22:42 +0000 (16:22 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 8 Sep 2014 20:22:42 +0000 (16:22 -0400)
src/main/java/com/gitblit/wicket/SafeTextModel.java

index aef7e97a6789ae4698306793e3d04ab8ce567ffa..5dc1854ddc9e8bcf8d1579b77c487c899e25410b 100644 (file)
@@ -23,7 +23,7 @@ public class SafeTextModel implements IModel<String> {
        }
 
        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<String> {
        }
 
        public static SafeTextModel relaxed(String value) {
-               return new SafeTextModel(Mode.relaxed);
+               return new SafeTextModel(value, Mode.relaxed);
        }
 
        public SafeTextModel(Mode mode) {