Ver código fonte

don't allow . in network name

Matthew R. Kasun 3 anos atrás
pai
commit
4d89c48749
1 arquivos alterados com 1 adições e 1 exclusões
  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
 func NetIDInNetworkCharSet(network *models.Network) bool {
 
-	charset := "abcdefghijklmnopqrstuvwxyz1234567890-_."
+	charset := "abcdefghijklmnopqrstuvwxyz1234567890-_"
 
 	for _, char := range network.NetID {
 		if !strings.Contains(charset, string(char)) {