[tor-commits] [flashproxy/master] Be more tolerant of whitespace in HTTP reg messages.

dcf at torproject.org dcf at torproject.org
Thu Sep 20 06:10:53 UTC 2012


commit cb88fe655ffdff5a21130a7b65eab2bf0cafc76a
Author: David Fifield <david at bamsoftware.com>
Date:   Wed Sep 19 15:49:27 2012 -0700

    Be more tolerant of whitespace in HTTP reg messages.
---
 facilitator/facilitator.cgi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/facilitator/facilitator.cgi b/facilitator/facilitator.cgi
index 6ccb479..8975aa7 100755
--- a/facilitator/facilitator.cgi
+++ b/facilitator/facilitator.cgi
@@ -101,7 +101,7 @@ def do_post():
     client_specs = fs.getlist("client")
     if len(client_specs) != 1:
         exit_error(400)
-    client_spec = client_specs[0]
+    client_spec = client_specs[0].strip()
     try:
         client_addr = fac.parse_addr_spec(client_spec, defhost=proxy_addr[0])
     except ValueError:





More information about the tor-commits mailing list