Browse Source

Merge pull request #1267 from gravitl/bugfix_v0.14.5_network_names

don't allow . in network name
dcarns 3 years ago
parent
commit
10fcd8b5c2
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)) {