mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-12-04 13:50:01 -05:00
Improved string sanitization, added dynamic timeout calculations, improved state persistence, fixed .allowed not being respected for downloadable files, by Zenith
This commit is contained in:
parent
3eb410afdd
commit
54491d8f2b
14 changed files with 139 additions and 99 deletions
|
|
@ -873,7 +873,7 @@ class ConversationMessage:
|
|||
name = str(name) if name is not None else ""
|
||||
except Exception:
|
||||
name = ""
|
||||
name = re.sub(r"[\x00-\x1f\x7f]", "", name)
|
||||
name = re.sub(r"[\x00-\x1f\x7f-\x9f]", "", name)
|
||||
parts = re.split(r"[/\\]", name)
|
||||
name = parts[-1] if parts else ""
|
||||
if ":" in name:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue