Author: arma Date: 2013-08-25 21:48:17 +0000 (Sun, 25 Aug 2013) New Revision: 26320
Modified: check/trunk/cgi-bin/TorBulkExitList.py Log: Make the tor bulk exit list script believe that ports with 4 digits or less, that contain a 0, but that aren't 80, are actually numbers.
Thanks to Zarel for the patch, and sorry for waiting 2 months to apply it. Fixes bug 9007.
Modified: check/trunk/cgi-bin/TorBulkExitList.py =================================================================== --- check/trunk/cgi-bin/TorBulkExitList.py 2013-08-25 11:30:53 UTC (rev 26319) +++ check/trunk/cgi-bin/TorBulkExitList.py 2013-08-25 21:48:17 UTC (rev 26320) @@ -203,7 +203,7 @@
# Verify that the port is a number between 1 and 65535 # Otherwise return a sane default of 80 - search = re.compile("^(?:[1-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|"+\ + search = re.compile("^(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|"+\ "65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$")
if search.match(user_supplied_port):
tor-commits@lists.torproject.org