truncate ridiculous extensions

This commit is contained in:
ed 2021-10-27 23:42:28 +02:00
parent d31f69117b
commit 3eb83f449b

View file

@ -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 = "%"