mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 03:58:39 +02:00
removing all whitespace from nameservers
This commit is contained in:
parent
812331681b
commit
0e8b24da10
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ class DomainNameserverForm(forms.Form):
|
|||
cleaned_data = super().clean()
|
||||
self.clean_empty_strings(cleaned_data)
|
||||
server = cleaned_data.get("server", "")
|
||||
# remove ANY spaces in the server field
|
||||
server = server.replace(" ", "")
|
||||
ip = cleaned_data.get("ip", None)
|
||||
# remove ANY spaces in the ip field
|
||||
ip = ip.replace(" ", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue