[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [arm/release] Hidden service parsing issue when there's multiple spaces in the HiddenServicePort opition (caught by Nicolas Pouillard)



commit 316bab06167165d658e1c7b58d42d154502a67ee
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits