Browse Source

don't allow . in network name

Matthew R. Kasun 3 years ago
parent
commit
075a0aafd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      logic/networks.go

+ 1 - 1
logic/networks.go

@@ -580,7 +580,7 @@ func GetNetwork(networkname string) (models.Network, error) {
 // NetIDInNetworkCharSet - checks if a netid of a network uses valid characters
 // NetIDInNetworkCharSet - checks if a netid of a network uses valid characters
 func NetIDInNetworkCharSet(network *models.Network) bool {
 func NetIDInNetworkCharSet(network *models.Network) bool {
 
 
-	charset := "abcdefghijklmnopqrstuvwxyz1234567890-_."
+	charset := "abcdefghijklmnopqrstuvwxyz1234567890-_"
 
 
 	for _, char := range network.NetID {
 	for _, char := range network.NetID {
 		if !strings.Contains(charset, string(char)) {
 		if !strings.Contains(charset, string(char)) {