mirror of
https://github.com/markqvist/LXMF.git
synced 2026-04-27 14:20:39 +00:00
Added check for msgpack strings in case LXMF client sent that for their name
This commit is contained in:
parent
85d8f4f583
commit
7ab2a9d314
1 changed files with 3 additions and 0 deletions
|
|
@ -115,6 +115,9 @@ def display_name_from_app_data(app_data=None):
|
|||
if dn == None:
|
||||
return None
|
||||
else:
|
||||
# if it was packed as a string, then we don't need to decode it
|
||||
if isinstance(dn, str):
|
||||
return dn
|
||||
try:
|
||||
decoded = dn.decode("utf-8")
|
||||
return decoded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue