mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-24 19:07:44 +03:00
[PR #4263] [MERGED] err on invalid feature flag #3366
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/4263
Author: @stefan0xC
Created: 1/21/2024
Status: ✅ Merged
Merged: 1/29/2024
Merged by: @dani-garcia
Base:
main← Head:err-on-invalid-flag📝 Commits (2)
e30fbc6err on invalid feature flag5564dc8print all invalid flags and improve error message📊 Changes
1 file changed (+7 additions, -4 deletions)
View changed files
📝
src/config.rs(+7 -4)📄 Description
As mentioned in the PR https://github.com/dani-garcia/vaultwarden/pull/4168#discussion_r1431892943 we have to
err!to disallow unknown flags otherwise all flags are allowed.I've just tested it and the warning is not even displayed. Might be the same reason as
890e668071/src/config.rs (L128)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.