mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-04 14:19:13 -04:00
correcting the uri decoding, so that also non-ASCII characters are correctly shown in hml page titles
This commit is contained in:
parent
4e104e8c83
commit
5ea8dd6b70
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue