Annotation of pkgsrc/lang/python33/patches/patch-Lib_http_server.py, revision 1.1

1.1     ! he          1: $NetBSD$
        !             2: 
        !             3: Fix for directory traversal vulnerability, ref.
        !             4: http://bugs.python.org/issue21766
        !             5: 
        !             6: --- Lib/http/server.py.orig    2014-03-09 08:40:10.000000000 +0000
        !             7: +++ Lib/http/server.py
        !             8: @@ -971,7 +971,7 @@ class CGIHTTPRequestHandler(SimpleHTTPRe
        !             9:          (and the next character is a '/' or the end of the string).
        !            10:  
        !            11:          """
        !            12: -        collapsed_path = _url_collapse_path(self.path)
        !            13: +        collapsed_path = _url_collapse_path(urllib.parse.unquote(self.path))
        !            14:          dir_sep = collapsed_path.find('/', 1)
        !            15:          head, tail = collapsed_path[:dir_sep], collapsed_path[dir_sep+1:]
        !            16:          if head in self.cgi_directories:

CVSweb <webmaster@jp.NetBSD.org>