Skip to content

Commit 095c3a2

Browse files
committed
Fixed an issue where the lookup of recognized country names during draft submission grabbed the unicode name instead of the ascii name for non-ascii country strings in XML submissions.
- Legacy-Id: 17345
1 parent f43e547 commit 095c3a2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ietf/submit/forms.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,12 @@ def format_messages(where, e, log):
214214
"name": author.attrib.get('fullname'),
215215
"email": author.findtext('address/email'),
216216
"affiliation": author.findtext('organization'),
217-
"country": author.findtext('address/postal/country'),
218217
}
218+
elem = author.find('address/postal/country')
219+
if elem != None:
220+
ascii_country = elem.get('ascii', None)
221+
info['country'] = ascii_country if ascii_country else elem.text
222+
219223
for item in info:
220224
if info[item]:
221225
info[item] = info[item].strip()

0 commit comments

Comments
 (0)