From c20b7dac3d791a0b9b00eee2bf5255983987424c Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 15 May 2022 17:23:52 +0200 Subject: [PATCH] ah whatever, still 16 years left --- copyparty/szip.py | 8 ++++---- copyparty/web/browser.js | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/copyparty/szip.py b/copyparty/szip.py index 8b421552..c5c107db 100644 --- a/copyparty/szip.py +++ b/copyparty/szip.py @@ -95,9 +95,9 @@ def gen_hdr(h_pos, fn, sz, lastmod, utf8, crc32, pre_crc): fn = sanitize_fn(fn, "/", []) bfn = fn.encode("utf-8" if utf8 else "cp437", "replace").replace(b"?", b"_") - # add ntfs and unix extrafields for utc, add z64 if requested + # add ntfs (0x24) and/or unix (0x10) extrafields for utc, add z64 if requested z64_len = len(z64v) * 8 + 4 if z64v else 0 - ret += spack(b"' + res.srvinf + ''; + try { + ebi('srv_info').innerHTML = ebi('srv_info2').innerHTML = '' + res.srvinf + ''; + } + catch (ex) { } if (this.hpush && !showfile.active()) hist_push(this.top);