mirror of
https://github.com/9001/copyparty.git
synced 2026-01-15 09:45:18 +10:00
truncate ridiculous extensions
This commit is contained in:
@@ -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 = "%"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user