mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
db/API.js: removed unuseful else clause, no functional changes
This commit is contained in:
parent
610a6db8c8
commit
67ce19eddb
1 changed files with 2 additions and 1 deletions
|
@ -723,8 +723,9 @@ exports.createPad = function(padID, text, callback)
|
||||||
callback(new customError("createPad can't create group pads","apierror"));
|
callback(new customError("createPad can't create group pads","apierror"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//check for url special characters
|
//check for url special characters
|
||||||
else if(padID.match(/(\/|\?|&|#)/))
|
if(padID.match(/(\/|\?|&|#)/))
|
||||||
{
|
{
|
||||||
callback(new customError("malformed padID: Remove special characters","apierror"));
|
callback(new customError("malformed padID: Remove special characters","apierror"));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue