Commit 56e22b3
committed
fix(API): use truthy check for READ_ONLY in /diagnostics handler
The diagnostics route handler used strict === true while the rest of
middleware uses truthy checks (|| false). A non-boolean truthy config
value (e.g. 1, "true") would bypass the read-only protection and
serve the full response with sensitive fields.1 parent 45f2d92 commit 56e22b3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| |||
0 commit comments