From 08cd672e404244ef2b4b925043716aa933fcbb27 Mon Sep 17 00:00:00 2001 From: Philipp Hahn Date: Wed, 3 May 2017 12:01:05 +0200 Subject: [PATCH] Remove double unescaping of title Commit fa5b334dcbe7a5dab21580b54cc2f5f142600379 by Joel Martin changed getQueryVal() to always decode the value using decodeURIComponent(), but unescape() is still used for extracting the title, leading to double-unescaping. As unescape() is deprecated anyway, remove the last user. Cc: Joel Martin Cc: Anthony Young --- vnc_auto.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnc_auto.html b/vnc_auto.html index 07eeeeba..f7efe063 100644 --- a/vnc_auto.html +++ b/vnc_auto.html @@ -206,7 +206,7 @@ document.getElementById('xvpResetButton').onclick = xvpReset; WebUtil.init_logging(WebUtil.getConfigVar('logging', 'warn')); - document.title = unescape(WebUtil.getConfigVar('title', 'noVNC')); + document.title = WebUtil.getConfigVar('title', 'noVNC'); // By default, use the host and port of server that served this file var host = WebUtil.getConfigVar('host', window.location.hostname); var port = WebUtil.getConfigVar('port', window.location.port);