mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
url encode pad name
This commit is contained in:
parent
c0e257835c
commit
07bc163cb6
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@
|
|||
function go2Name()
|
||||
{
|
||||
var padname = document.getElementById("padname").value;
|
||||
padname.length > 0 ? window.location = "p/" + padname : alert("Please enter a name")
|
||||
padname.length > 0 ? window.location = "p/" + encodeURIComponent(padname.trim()) : alert("Please enter a name")
|
||||
}
|
||||
|
||||
function go2Random()
|
||||
|
|
Loading…
Reference in a new issue