Added Sanitization logic for custom PadIDs

This commit is contained in:
Josh Pruim 2012-12-01 20:18:55 -08:00
parent 8204b52f55
commit 4a43fd7ecb

View file

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