From ae21d548ba0d094b2e1c76a360bf6b72ad49a1d9 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 8 Nov 2015 21:19:54 +0000 Subject: [PATCH] fix join --- openlp/plugins/remotes/lib/httprouter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/remotes/lib/httprouter.py b/openlp/plugins/remotes/lib/httprouter.py index 3bd207a28..78afd4de5 100644 --- a/openlp/plugins/remotes/lib/httprouter.py +++ b/openlp/plugins/remotes/lib/httprouter.py @@ -353,10 +353,10 @@ class HttpRouter(RegistryProperties): log.debug('serve file request %s' % file_name) parts = file_name.split('/') if len(parts) == 1: - file_name = parts[0] + '/stage.html' + file_name = os.path.join(parts[0], 'stage.html') elif len(parts) == 3: print(parts) - file_name = parts[1] + '/' + parts[2] + file_name = os.path.join(parts[1], parts[2]) path = os.path.normpath(os.path.join(self.config_dir, file_name)) if not path.startswith(self.config_dir): return self.do_not_found()