Permalink
Browse files

Fix error message at webadmin #239

  • Loading branch information...
DarthGandalf committed Oct 19, 2012
1 parent 4f1fd1f commit b0a2a5815567d4ff282f007760bcdac95cc8fc50
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/webadmin.cpp
View
@@ -817,6 +817,10 @@ class CWebAdminMod : public CModule {
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");

0 comments on commit b0a2a58

Please sign in to comment.