misc: limit inspect view to form_* variables (#59674)

This commit is contained in:
Frédéric Péters 2021-12-18 11:03:00 +01:00
parent 3265b4a107
commit c20803ba48
1 changed files with 2 additions and 2 deletions

View File

@ -3209,8 +3209,8 @@ class FormBackOfficeStatusPage(FormStatusPage):
return v
for k in sorted(substvars.get_flat_keys()):
if k in ('attachments',):
# blacklist, legacy
if not k.startswith('form_'):
# do not display legacy variables
continue
k = safe(k)
v = substvars[k]