mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
config, dynamicdns, pagekite: Remove incorrect use of str
This was used before to ensure the domain name was ASCII. However, str does not convert to ASCII in Python 3. Note that in config module, which sets the system domain name, the domain is already restricted to alphanumerics, hyphen, and period. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
0b630037f9
commit
48d7f68ed5
3 files changed
+2
-13
No files matched your search
@@ -117,9 +117,6 @@ def set_domainname(domainname, old_domainname):
|
||||
"""Sets machine domain name to domainname"""
|
||||
old_domainname = config.get_domainname()
|
||||
|
||||
# Domain name should be ASCII. If it's unicode, convert to ASCII.
|
||||
domainname = str(domainname)
|
||||
|
||||
# Domain name is not case sensitive, but Let's Encrypt certificate
|
||||
# paths use lower-case domain name.
|
||||
domainname = domainname.lower()
|
||||
|
||||
Reference in new issue
Block a user