##// END OF EJS Templates
remove redundant abs_path
Manuel Riel -
Show More
@@ -30,8 +30,7 b' class FilesHandler(IPythonHandler):'
30 @web.authenticated
30 @web.authenticated
31 def get(self, path):
31 def get(self, path):
32 cm = self.settings['contents_manager']
32 cm = self.settings['contents_manager']
33 abs_path = os.path.join(cm.root_dir, path)
33 if cm.is_hidden(path):
34 if cm.is_hidden(abs_path):
35 self.log.info("Refusing to serve hidden file, via 404 Error")
34 self.log.info("Refusing to serve hidden file, via 404 Error")
36 raise web.HTTPError(404)
35 raise web.HTTPError(404)
37
36
General Comments 0
You need to be logged in to leave comments. Login now