Actually allow -100 to be entered by getting 4 characters, not 3.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Jan 2011 07:20:09 +0000 (08:20 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Jan 2011 07:20:09 +0000 (08:20 +0100)
src/main/java/net/pterodactylus/sone/web/OptionsPage.java

index 748dff7..84d7c79 100644 (file)
@@ -58,7 +58,7 @@ public class OptionsPage extends SoneTemplatePage {
                        preferences.setInsertionDelay(insertionDelay);
                        Integer positiveTrust = Numbers.safeParseInteger(request.getHttpRequest().getPartAsStringFailsafe("positive-trust", 3));
                        preferences.setPositiveTrust(positiveTrust);
-                       Integer negativeTrust = Numbers.safeParseInteger(request.getHttpRequest().getPartAsStringFailsafe("negative-trust", 3));
+                       Integer negativeTrust = Numbers.safeParseInteger(request.getHttpRequest().getPartAsStringFailsafe("negative-trust", 4));
                        preferences.setNegativeTrust(negativeTrust);
                        String trustComment = request.getHttpRequest().getPartAsStringFailsafe("trust-comment", 256);
                        if (trustComment.trim().length() == 0) {