From db826ceadef91189971cf2ae698854f4fecfcee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BERTHO?= Date: Sat, 1 Sep 2018 12:19:38 +0200 Subject: [PATCH] Add ' escape MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi BERTHO --- SimplePanoramaViewer | 2 ++ html/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SimplePanoramaViewer b/SimplePanoramaViewer index 1b4b61b..4b43619 100755 --- a/SimplePanoramaViewer +++ b/SimplePanoramaViewer @@ -23,6 +23,8 @@ else: if img == "": exit(0) +img = img.replace("'", "\\'") + exe_dir = path.dirname(path.realpath(sys.argv[0])) os.chdir(exe_dir) diff --git a/html/index.html b/html/index.html index 530880c..787f853 100644 --- a/html/index.html +++ b/html/index.html @@ -52,7 +52,7 @@ time_anim: false, default_fov: 40, min_fov: 5, - max_fov: 50, + max_fov: 60, navbar: [ 'autorotate', 'zoom',