mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-10 08:55:00 -04:00
Added Sanitization logic for custom PadIDs
This commit is contained in:
parent
8204b52f55
commit
4a43fd7ecb
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue