Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 2183:ac24a9c74cca
be paranoid about TRACKER_WEB
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 05 Apr 2004 06:13:42 +0000 |
| parents | c49495585c44 |
| children | ca2664e095be |
line wrap: on
line diff
--- a/roundup/cgi/client.py Mon Apr 05 05:51:57 2004 +0000 +++ b/roundup/cgi/client.py Mon Apr 05 06:13:42 2004 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.169 2004-03-26 05:16:03 richard Exp $ +# $Id: client.py,v 1.170 2004-04-05 06:13:42 richard Exp $ """WWW request handler (also used in the stand-alone server). """ @@ -109,6 +109,10 @@ # this is the base URL for this tracker self.base = self.instance.config.TRACKER_WEB + # check the tracker_we setting + if not self.base.endswith('/'): + self.base = self.base + '/' + # this is the "cookie path" for this tracker (ie. the path part of # the "base" url) self.cookie_path = urlparse.urlparse(self.base)[2]
