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

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



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

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