From 23c03cc51f43eef40d7041127b4ef3e462f50830 Mon Sep 17 00:00:00 2001 From: Desuuuu Date: Tue, 18 Sep 2018 02:56:24 +0200 Subject: [PATCH] tor/controller: fix response parsing for values containing the '=' character --- tor/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tor/controller.go b/tor/controller.go index d806016e..a5628dc1 100644 --- a/tor/controller.go +++ b/tor/controller.go @@ -149,7 +149,7 @@ func parseTorReply(reply string) map[string]string { // "KEY=VALUE". If the parameter doesn't contain "=", then we // can assume it does not provide any other relevant information // already known. - keyValue := strings.Split(content, "=") + keyValue := strings.SplitN(content, "=", 2) if len(keyValue) != 2 { continue }