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