removing all whitespace from nameservers

This commit is contained in:
David Kennedy 2023-11-02 12:23:24 -04:00
parent 812331681b
commit 0e8b24da10
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -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(" ", "")