Commits

Anonymous committed 5b3b038

thinking about security of static file handler

  • Participants
  • Parent commits 9f7da3b

Comments (0)

Files changed (1)

File django_wsgiserver/mediahandler.py

         path_info = environ['PATH_INFO']
         if path_info[0] == '/':
             path_info = path_info[1:]
-
+        # this is the thing I'm not sure is secure, can we prevent
+        # going up outof media root?
         file_path = os.path.join( self.media_root, path_info )
 
         if not os.path.exists( file_path ):
             output = BlockIterator(fp)
             
         return done( status, headers, output )
+
+