Fix error message at webadmin #239

This commit is contained in:
Alexey Sokolov
2012-10-19 22:29:28 +07:00
parent 4f1fd1f6db
commit b0a2a58155

View File

@@ -817,6 +817,10 @@ public:
WebSock.PrintErrorPage("Network number limit reached. Ask an admin to increase the limit for you, or delete few old ones from Your Settings");
return true;
}
if (!CIRCNetwork::IsValidNetwork(sName)) {
WebSock.PrintErrorPage("Network name should be alphanumeric");
return true;
}
pNetwork = pUser->AddNetwork(sName);
if (!pNetwork) {
WebSock.PrintErrorPage("Network [" + sName.Token(0) + "] already exists");