From 07bc163cb698768020cb4d41808f1cd92c0d1b7b Mon Sep 17 00:00:00 2001 From: anoy Date: Mon, 27 Aug 2018 12:59:06 +0200 Subject: [PATCH] url encode pad name --- src/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/index.html b/src/templates/index.html index 87fe0ee78..872367c9a 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -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()