diff --git a/static/js/pad2.js b/static/js/pad2.js index 9df57ae8f..28a9ac14c 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -172,7 +172,7 @@ function handshake() socket.once('connect', function() { var padId = document.location.pathname.substring(document.location.pathname.lastIndexOf("/") + 1); - padId = unescape(padId); // unescape neccesary due to Safari and Opera interpretation of spaces + padId = decodeURIComponent(padId); // unescape neccesary due to Safari and Opera interpretation of spaces document.title = document.title + " | " + padId; diff --git a/static/timeslider.html b/static/timeslider.html index 48572d422..f95b33a67 100644 --- a/static/timeslider.html +++ b/static/timeslider.html @@ -62,7 +62,7 @@ //get the padId out of the url var urlParts= document.location.pathname.split("/"); - padId = urlParts[urlParts.length-2]; + padId = decodeURIComponent(urlParts[urlParts.length-2]); //set the title document.title = document.title + " | " + padId;