mirror of
https://github.com/9001/copyparty.git
synced 2026-03-22 16:13:11 +10: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,
|
||||
msg=(
|
||||
BADVER
|
||||
if self.conn.hsrv.bad_ver and self.can_admin
|
||||
if self.conn.hsrv.bad_ver and avol
|
||||
else BADXFFB
|
||||
if hasattr(self, "bad_xff")
|
||||
else ""
|
||||
|
||||
@@ -1871,3 +1871,7 @@ class SvcHub(object):
|
||||
except Exception as e:
|
||||
t = "failed to process vulnerability advisory; %s"
|
||||
self.log("ver-chk", t % (min_ex()), 1)
|
||||
try:
|
||||
os.unlink(fpath)
|
||||
except:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user