Merge pull request #1932 from Desuuuu/tor-controller-parse-fix

tor/controller: fix response parsing for values containing the '=' character
This commit is contained in:
Olaoluwa Osuntokun 2018-09-17 20:55:06 -07:00 committed by GitHub
commit 8a2b3bf369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}