Skip to content

Commit

Permalink
Merge pull request from GHSA-64x5-55rw-9974
Browse files Browse the repository at this point in the history
lost in forward-port PR 478

Co-authored-by: Zachary Sailer <zsailer@apple.com>
  • Loading branch information
minrk and Zsailer authored Aug 18, 2023
1 parent ed65a6c commit 87a4927
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jupyter_server/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ def head(self, path):
@authorized
def get(self, path, **kwargs):
"""Get a file by path."""
self.check_xsrf_cookie()
if os.path.splitext(path)[1] == ".ipynb" or self.get_argument("download", None):
name = path.rsplit("/", 1)[-1]
self.set_attachment_header(name)
Expand Down

0 comments on commit 87a4927

Please sign in to comment.