mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix: zonemgr must be unicode value
To support IDNA --zonemgr option must be unicode not ascii https://fedorahosted.org/freeipa/ticket/4724 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
committed by
Petr Vobornik
parent
a86d8e8064
commit
d2ffd17617
@@ -403,6 +403,8 @@ def zonemgr_callback(option, opt_str, value, parser):
|
||||
"""
|
||||
# validate the value first
|
||||
try:
|
||||
# IDNA support requires unicode
|
||||
value = value.decode(sys.stdin.encoding)
|
||||
validate_zonemgr_str(value)
|
||||
except ValueError, e:
|
||||
parser.error("invalid zonemgr: " + unicode(e))
|
||||
|
||||
Reference in New Issue
Block a user