From 2136007923a6119c259694f0710abaa78a78cce6 Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Thu, 17 Aug 2017 16:59:17 -0700 Subject: [PATCH 1/2] release 5.1.0rc1 --- notebook/_version.py | 2 +- notebook/static/base/js/namespace.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notebook/_version.py b/notebook/_version.py index ec6e5534c..1a5819237 100644 --- a/notebook/_version.py +++ b/notebook/_version.py @@ -9,5 +9,5 @@ store the current version info of the notebook. # Next beta/alpha/rc release: The version number for beta is X.Y.ZbN **without dots**. -version_info = (5, 1, 0, 'rc1') +version_info = (5, 1, 0, 'rc2') __version__ = '.'.join(map(str, version_info[:3])) + ''.join(version_info[3:]) diff --git a/notebook/static/base/js/namespace.js b/notebook/static/base/js/namespace.js index a82fa5012..63ecf1be6 100644 --- a/notebook/static/base/js/namespace.js +++ b/notebook/static/base/js/namespace.js @@ -73,7 +73,7 @@ define(function(){ // tree jglobal('SessionList','tree/js/sessionlist'); - Jupyter.version = "5.1.0rc1"; + Jupyter.version = "5.1.0rc2"; Jupyter._target = '_blank'; return Jupyter; }); From 20cac8236d29352f4d0d323a401e39c03caf5353 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Fri, 18 Aug 2017 11:06:45 +0100 Subject: [PATCH 2/2] URL escape file path in iframe view handler Closes gh-2775 --- notebook/view/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/view/handlers.py b/notebook/view/handlers.py index 4496a5294..3e89faccc 100644 --- a/notebook/view/handlers.py +++ b/notebook/view/handlers.py @@ -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) )