mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-10 08:55:00 -04:00
Added in an even better regex.
This commit is contained in:
parent
604b785dde
commit
6c3bcb33c0
2 changed files with 2 additions and 2 deletions
|
@ -331,7 +331,7 @@ exports.createPad = function(padID, text, callback)
|
|||
callback(new customError("createPad can't create group pads","apierror"));
|
||||
return;
|
||||
}
|
||||
padID = padID.replace(/[;\/\?:@&=\+\$,{}\\\^\[\]\`\|]/gi, '_');
|
||||
padID = padID.replace(/[;\/\?:@&=\+\$,{}\\\^\[\]\`\|%<>\*#]/gi, '_');
|
||||
//create pad
|
||||
getPadSafe(padID, false, text, function(err)
|
||||
{
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
function go2Name()
|
||||
{
|
||||
|
||||
var padname = document.getElementById("padname").value.replace(/[;\/\?:@&=\+\$,{}\\\^\[\]\`\|]/gi, '_');
|
||||
var padname = document.getElementById("padname").value.replace(/[;\/\?:@&=\+\$,{}\\\^\[\]\`\|%<>\*#]/gi, '_');
|
||||
padname.length > 0 ? window.location = "p/" + padname : alert("Please enter a name");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue