mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
configd/templates, idna encode fails when starting with [.], this may not be a complete fix, but seems to resolv the most likely issues. closes https://github.com/opnsense/core/pull/2484
This commit is contained in:
parent
c425bcd601
commit
9ad0cbc19c
@ -62,7 +62,7 @@ class Template(object):
|
||||
|
||||
# register additional filters
|
||||
self._j2_env.filters['decode_idna'] = lambda x:x.decode('idna')
|
||||
self._j2_env.filters['encode_idna'] = lambda x:x.encode('idna')
|
||||
self._j2_env.filters['encode_idna'] = lambda x:x.encode('idna') if not x.startswith('.') else x
|
||||
|
||||
def list_module(self, module_name):
|
||||
""" list single module content
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user