CVS: tmda-cgi Install.py,1.33,1.34
Jim Ramsay <[email protected]> Fri, 19 Mar 2004 08:55:05 -0800
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12597
Modified Files:
Install.py
Log Message:
Now we will support /foo/bar/blee/domain.com/any/number/of/dirs/user to grab
'domain.com' out.
Index: Install.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Install.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- Install.py 19 Mar 2004 16:19:06 -0000 1.33
+++ Install.py 19 Mar 2004 16:54:58 -0000 1.34
@@ -660,7 +660,7 @@
}
Dict["ShortUrlDom"] = re.sub("^www\.", "", Dict["UrlDomain"], re.I)
Dict["qUser"] = re.sub("\.", ":", Dict["User"])
- Match = re.search(".*/([^\./]+\.[^/]+)/([^/]/)?[^/]+/?$", Dict["Home"])
+ Match = re.search(".*/([^\./]+\.[^/]+)/([^/]+/)*[^/]+/?$", Dict["Home"])
if Match: Dict["Domain"] = Match.group(1)
# Load the display template