mirror of
https://github.com/markqvist/LXMF
synced 2026-11-22 23:10:36 +00:00
Strip null bytes from display names by default
This commit is contained in:
1 parent
25b7fcf7de
commit
83fbe80497
1 file changed
+1
-1
+1
-1
@@ -128,7 +128,7 @@ def display_name_from_app_data(app_data=None):
|
||||
if dn == None: return None
|
||||
else:
|
||||
try:
|
||||
decoded = dn.decode("utf-8")
|
||||
decoded = dn.decode("utf-8").replace("\x00", "").strip()
|
||||
return decoded
|
||||
except Exception as e:
|
||||
RNS.log(f"Could not decode display name in included announce data. The contained exception was: {e}", RNS.LOG_ERROR)
|
||||
|
||||
Reference in new issue
Block a user