From c4c69c48fdaea8173f5a7fe5507515a18862a19f Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Tue, 28 Jan 2020 19:25:27 -0500 Subject: [PATCH] trim newlines from mitm control files --- .../main/java/bubble/service/account/MitmControlService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bubble-server/src/main/java/bubble/service/account/MitmControlService.java b/bubble-server/src/main/java/bubble/service/account/MitmControlService.java index d3596aeb..0e09196e 100644 --- a/bubble-server/src/main/java/bubble/service/account/MitmControlService.java +++ b/bubble-server/src/main/java/bubble/service/account/MitmControlService.java @@ -84,7 +84,7 @@ public class MitmControlService { } } - public String getCurrentValue() throws IOException { return FileUtil.toString(MITM_CONTROL_FILE); } - public String getRootValue() throws IOException { return FileUtil.toString(MITM_ROOT_CONTROL_FILE); } + public String getCurrentValue() throws IOException { return FileUtil.toString(MITM_CONTROL_FILE).trim(); } + public String getRootValue() throws IOException { return FileUtil.toString(MITM_ROOT_CONTROL_FILE).trim(); } }