mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
remove redundant abs_path
This commit is contained in:
parent
fc59a1b927
commit
c5069fe1fd
@ -30,8 +30,7 @@ class FilesHandler(IPythonHandler):
|
||||
@web.authenticated
|
||||
def get(self, path):
|
||||
cm = self.settings['contents_manager']
|
||||
abs_path = os.path.join(cm.root_dir, path)
|
||||
if cm.is_hidden(abs_path):
|
||||
if cm.is_hidden(path):
|
||||
self.log.info("Refusing to serve hidden file, via 404 Error")
|
||||
raise web.HTTPError(404)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user