From 4a43fd7ecb3bef314ac78a6235471926c820deeb Mon Sep 17 00:00:00 2001 From: Josh Pruim Date: Sat, 1 Dec 2012 20:18:55 -0800 Subject: [PATCH] Added Sanitization logic for custom PadIDs --- 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 8d75c433c..e676e8f11 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -173,7 +173,7 @@ { var padname = document.getElementById("padname").value.replace(/[^a-z0-9_\-]/gi, '_'); - padname.length > 0 ? window.location = "p/" + padname : alert("Please enter a name") + padname.length > 0 ? window.location = "p/" + padname : alert("Please enter a name"); } function go2Random()