Pita/etherpad-lite — Issue #461: CR in pad.js : use decodeURIComponent(userName) - instead of unescape(userName) - to allow UTF-8 encoded parameter username
Author: Wikinaut
Created: 2012-02-17 13:27:00+00:00
State: open

in pad.js use decodeURIComponent(userName) instead of unescape(userName)

if(userName)
{
// If the username is set as a parameter we should set a global value that we can call once we have initiated the pad.
// globalUserName = unescape(userName);
// http://stackoverflow.com/questions/619323/decodeuricomponent-vs-unescape-what-is-wrong-with-unescape
settings.globalUserName = decodeURIComponent(userName);
}