Skip to content

Commit 87a4927

Browse files
minrkZsailer
andauthored
Merge pull request from GHSA-64x5-55rw-9974
lost in forward-port PR 478 Co-authored-by: Zachary Sailer <zsailer@apple.com>
1 parent ed65a6c commit 87a4927

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jupyter_server/base/handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@ def head(self, path):
855855
@authorized
856856
def get(self, path, **kwargs):
857857
"""Get a file by path."""
858+
self.check_xsrf_cookie()
858859
if os.path.splitext(path)[1] == ".ipynb" or self.get_argument("download", None):
859860
name = path.rsplit("/", 1)[-1]
860861
self.set_attachment_header(name)

0 commit comments

Comments
 (0)