From 223016d78da86c2ae4a6f9fd7b0cb565cf1e159f Mon Sep 17 00:00:00 2001 From: Wikinaut Date: Thu, 10 Nov 2011 22:42:30 +0100 Subject: [PATCH] Revert "patch to allow user-added prefixes and modification to random pad names; correctly process uri-encoded utf-8 characters in pad names and page titles" This reverts commit bda20a38a46ee159d802f3aa9952c85326af84a6. --- static/favicon.ico | Bin 1150 -> 1150 bytes static/index.html | 40 +++++++++++++--------------------------- static/js/pad2.js | 2 +- static/timeslider.html | 2 +- 4 files changed, 15 insertions(+), 29 deletions(-) diff --git a/static/favicon.ico b/static/favicon.ico index a4777862b46721026e1fcddf3c6534cfb3a9e046..2529c923f30e7ad806630c1ec40c4ca9db439d64 100644 GIT binary patch delta 132 zcmeyz@sDFe9uq&qf1dwHcycY1A%@sqEMkALh}kk@>aArq6hJZ`Y}e$2j180RSR4T7 Cj5#;} delta 132 zcmeyz@sDFe9uxon{|x_;@Z?%1LkzLKSj7Hf5wm5+)LYAJD1c->*sjS385<_su{Zz# D_eM|v diff --git a/static/index.html b/static/index.html index 3b3944cc2..fb53acb20 100644 --- a/static/index.html +++ b/static/index.html @@ -89,8 +89,18 @@ diff --git a/static/js/pad2.js b/static/js/pad2.js index ea06d8cfd..9df57ae8f 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 = decodeURIComponent(padId); + padId = unescape(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 73bc5fcd1..4dbf8d939 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 = decodeURIComponent( urlParts[urlParts.length-2] ); + padId = urlParts[urlParts.length-2]; //set the title document.title = document.title + " | " + padId;