[tor-commits] r24560: {arm} Hidden service parsing issue when there's multiple spaces in (arm/trunk/src/util)

Damian Johnson atagar1 at gmail.com
Tue Apr 5 02:32:07 UTC 2011


Author: atagar
Date: 2011-04-05 02:32:07 +0000 (Tue, 05 Apr 2011)
New Revision: 24560

Modified:
   arm/trunk/src/util/torTools.py
Log:
Hidden service parsing issue when there's multiple spaces in the HiddenServicePort opition (caught by Nicolas Pouillard)



Modified: arm/trunk/src/util/torTools.py
===================================================================
--- arm/trunk/src/util/torTools.py	2011-04-05 00:39:17 UTC (rev 24559)
+++ arm/trunk/src/util/torTools.py	2011-04-05 02:32:07 UTC (rev 24560)
@@ -1750,7 +1750,7 @@
             
             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