evalNewWeblog() now checks for invalid characters in weblog-alias

This commit is contained in:
Robert Gaggl 2001-06-20 10:29:32 +00:00
parent 1ce05a7061
commit 705a1a523b

View file

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