mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +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()
|
function go2Name()
|
||||||
{
|
{
|
||||||
var padname = document.getElementById("padname").value;
|
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()
|
function go2Random()
|
||||||
|
|
Loading…
Reference in a new issue