evalNewWeblog() now checks for invalid characters in weblog-alias
This commit is contained in:
parent
1ce05a7061
commit
705a1a523b
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ function evalNewWeblog() {
|
|||
if (this.checkIfExists(newLog.alias)) {
|
||||
res.message = "Sorry, we already have a weblog with this alias!";
|
||||
newLog.error = true;
|
||||
} else if (!isClean(newLog.alias)) {
|
||||
res.message = "Please don't use any special characters in the alias!";
|
||||
newLog.error = true;
|
||||
} else {
|
||||
// now we can safely create a new weblog
|
||||
this.createNewWeblog(newLog);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue