mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
truncate ridiculous extensions
This commit is contained in:
parent
d31f69117b
commit
3eb83f449b
|
@ -2182,6 +2182,8 @@ class HttpCli(object):
|
|||
|
||||
try:
|
||||
ext = "---" if is_dir else fn.rsplit(".", 1)[1]
|
||||
if len(ext) > 16:
|
||||
ext = ext[:16]
|
||||
except:
|
||||
ext = "%"
|
||||
|
||||
|
|
Loading…
Reference in a new issue