[tor-commits] [arm/release] Hidden service parsing issue when there's multiple spaces in the HiddenServicePort opition (caught by Nicolas Pouillard)
atagar at torproject.org
atagar at torproject.org
Sun Jul 17 06:08:15 UTC 2011
commit 316bab06167165d658e1c7b58d42d154502a67ee
Author: Damian Johnson <atagar at torproject.org>
Date: Tue Apr 5 02:32:07 2011 +0000
Hidden service parsing issue when there's multiple spaces in the HiddenServicePort opition (caught by Nicolas Pouillard)
svn:r24560
---
src/util/torTools.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/util/torTools.py b/src/util/torTools.py
index cbdf900..696e712 100644
--- a/src/util/torTools.py
+++ b/src/util/torTools.py
@@ -1750,7 +1750,7 @@ class Controller(TorCtl.PostEventListener):
if " " in hsEntry:
# parses the target, checking if it's a port or IP:Port combination
- hsTarget = hsEntry.split(" ")[1]
+ hsTarget = hsEntry.split()[1]
if ":" in hsTarget:
hsPort = hsTarget.split(":")[1] # target is the IP:Port
More information about the tor-commits
mailing list