Downcase new domains.
This commit is contained in:
		
							parent
							
								
									6a9516e2c8
								
							
						
					
					
						commit
						cad863e5f9
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -112,6 +112,9 @@ class DNSManager::Storage
 | 
			
		|||
 | 
			
		||||
		user_data = user_must_exist! user_id
 | 
			
		||||
 | 
			
		||||
		# Prevent future very confusing errors.
 | 
			
		||||
		domain = domain.downcase
 | 
			
		||||
 | 
			
		||||
		return Response::DomainAlreadyExists.new if zones_by_domain.get? domain
 | 
			
		||||
 | 
			
		||||
		# Verify if the domain is acceptable.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue