]> git.pld-linux.org Git - packages/mailman.git/commitdiff
- outdate
authorPaweł Gołaszewski <blues@pld-linux.org>
Fri, 15 Apr 2005 19:31:14 +0000 (19:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    CAN-2005-0202.txt -> 1.2

CAN-2005-0202.txt [deleted file]

diff --git a/CAN-2005-0202.txt b/CAN-2005-0202.txt
deleted file mode 100644 (file)
index 4c8cd24..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-Index: private.py
-===================================================================
-RCS file: /cvsroot/mailman/mailman/Mailman/Cgi/private.py,v
-retrieving revision 2.16.2.1
-diff -u -r2.16.2.1 private.py
---- private.py 8 Feb 2003 07:13:50 -0000       2.16.2.1
-+++ private.py 10 Feb 2005 03:34:21 -0000
-@@ -1,4 +1,4 @@
--# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
-+# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
- #
- # This program is free software; you can redistribute it and/or
- # modify it under the terms of the GNU General Public License
-@@ -35,13 +35,17 @@
- _ = i18n._
- i18n.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE)
-+SLASH = '/'
-+
\f
- def true_path(path):
-     "Ensure that the path is safe by removing .."
--    path = path.replace('../', '')
--    path = path.replace('./', '')
--    return path[1:]
-+    parts = path.split(SLASH)
-+    safe = [x for x in parts if x not in ('.', '..')]
-+    if parts <> safe:
-+        syslog('mischief', 'Directory traversal attack thwarted')
-+    return SLASH.join(safe)[1:]
\f
This page took 0.046671 seconds and 4 git commands to generate.