From: David ‘Bombe’ Roden Date: Fri, 28 Jan 2011 07:20:09 +0000 (+0100) Subject: Actually allow -100 to be entered by getting 4 characters, not 3. X-Git-Tag: 0.4.4^2~14 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=dc6c09f67cae9ed022475f7fca307817bd6bfa82;p=Sone.git Actually allow -100 to be entered by getting 4 characters, not 3. --- diff --git a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java index 748dff7..84d7c79 100644 --- a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java +++ b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java @@ -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) {