mirror of
https://github.com/9001/copyparty.git
synced 2026-10-05 21:41:39 +01:00
ver-chk: fix admin-filter (closes #1363);
also drop cache if json invalid
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user