/[smecontribs]/rpms/mailman/contribs7/mailman-2.1-CAN-2005-0202.patch
ViewVC logotype

Annotation of /rpms/mailman/contribs7/mailman-2.1-CAN-2005-0202.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Apr 21 00:12:42 2008 UTC (16 years, 6 months ago) by slords
Branch: MAIN
CVS Tags: mailman-2_1_5_1-34_rhel4_6_el4_sme
Initial import of mailman-2.1.5.1-34.rhel4.6.el4.sme.src.rpm

1 slords 1.1 diff -r -u mailman-2.1.5.orig/Mailman/Cgi/private.py mailman-2.1.5/Mailman/Cgi/private.py
2     --- mailman-2.1.5.orig/Mailman/Cgi/private.py 2003-02-08 02:13:50.000000000 -0500
3     +++ mailman-2.1.5/Mailman/Cgi/private.py 2005-02-08 11:35:02.272307000 -0500
4     @@ -18,6 +18,7 @@
5     """
6    
7     import os
8     +import re
9     import sys
10     import cgi
11     import mimetypes
12     @@ -39,8 +40,7 @@
13    
14     def true_path(path):
15     "Ensure that the path is safe by removing .."
16     - path = path.replace('../', '')
17     - path = path.replace('./', '')
18     + path = re.sub('\.+/+', '', path)
19     return path[1:]
20    
21    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed