url encode pad name

pull/3474/merge
anoy 2018-08-27 12:59:06 +02:00 committed by muxator
parent c0e257835c
commit 07bc163cb6
1 changed files with 1 additions and 1 deletions

View File

@ -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()