mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
return icon that says 403/404 if file inaccessible
This commit is contained in:
parent
5026b21226
commit
8a38101e48
|
@ -3139,7 +3139,7 @@ class HttpCli(object):
|
|||
|
||||
ext = ext.rstrip(".") or "unk"
|
||||
if len(ext) > 11:
|
||||
ext = "⋯" + ext[-9:]
|
||||
ext = "~" + ext[-9:]
|
||||
|
||||
# chrome cannot handle more than ~2000 unique SVGs
|
||||
chrome = " rv:" not in self.ua
|
||||
|
@ -3407,6 +3407,9 @@ class HttpCli(object):
|
|||
self.reply(pt.encode("utf-8"), status=rc)
|
||||
return True
|
||||
|
||||
if "th" in self.ouparam:
|
||||
return self.tx_ico("a.e" + pt[:3])
|
||||
|
||||
t = t.format(self.args.SR)
|
||||
qv = quotep(self.vpaths) + self.ourlq()
|
||||
html = self.j2s("splash", this=self, qvpath=qv, msg=t)
|
||||
|
|
Loading…
Reference in a new issue