[fix]: various issues discovered during testing (#3002)

* fix: prevent invalid calls to exchange APIs
* fix: audit conditions
* fix: audit filtering
This commit is contained in:
Vlad Stan
2025-02-27 07:45:29 +01:00
committed by GitHub
parent 89d85a0d7e
commit 048aff3db4
5 changed files with 17 additions and 10 deletions
+8 -6
View File
@@ -695,12 +695,14 @@ class AuditSettings(LNbitsSettings):
if _re_fullmatch_safe(exclude_path, path):
return False
if len(self.lnbits_audit_include_paths) != 0:
if not path:
return False
for include_path in self.lnbits_audit_include_paths:
if _re_fullmatch_safe(include_path, path):
return True
if len(self.lnbits_audit_include_paths) == 0:
return True
if not path:
return False
for include_path in self.lnbits_audit_include_paths:
if _re_fullmatch_safe(include_path, path):
return True
return False