mirror of
https://github.com/9001/copyparty.git
synced 2026-04-12 23:32:32 -06:00
ver-chk: fix admin-filter (closes #1363);
also drop cache if json invalid
This commit is contained in:
parent
8a9066c35c
commit
6eb4f0ad9c
|
|
@ -5644,7 +5644,7 @@ class HttpCli(object):
|
||||||
no304vis=self.args.no304 > 0,
|
no304vis=self.args.no304 > 0,
|
||||||
msg=(
|
msg=(
|
||||||
BADVER
|
BADVER
|
||||||
if self.conn.hsrv.bad_ver and self.can_admin
|
if self.conn.hsrv.bad_ver and avol
|
||||||
else BADXFFB
|
else BADXFFB
|
||||||
if hasattr(self, "bad_xff")
|
if hasattr(self, "bad_xff")
|
||||||
else ""
|
else ""
|
||||||
|
|
|
||||||
|
|
@ -1871,3 +1871,7 @@ class SvcHub(object):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
t = "failed to process vulnerability advisory; %s"
|
t = "failed to process vulnerability advisory; %s"
|
||||||
self.log("ver-chk", t % (min_ex()), 1)
|
self.log("ver-chk", t % (min_ex()), 1)
|
||||||
|
try:
|
||||||
|
os.unlink(fpath)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue