mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-11 12:30:51 +08:00
URL escape file path in iframe view handler
Closes gh-2775
This commit is contained in:
parent
2136007923
commit
20cac8236d
@ -17,7 +17,7 @@ class ViewHandler(IPythonHandler):
|
||||
raise web.HTTPError(404, u'File does not exist: %s' % path)
|
||||
|
||||
basename = path.rsplit('/', 1)[-1]
|
||||
file_url = url_path_join(self.base_url, 'files', path)
|
||||
file_url = url_path_join(self.base_url, 'files', url_escape(path))
|
||||
self.write(
|
||||
self.render_template('view.html', file_url=file_url, page_title=basename)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user