mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-26 05:40:18 +00:00
fix trailing slash in configuration builder
This commit is contained in:
parent
a2aa7c9bc2
commit
5d1c11ceba
1 changed files with 8 additions and 0 deletions
|
@ -141,6 +141,14 @@ macro_rules! make_config {
|
||||||
)+)+
|
)+)+
|
||||||
config.domain_set = _domain_set;
|
config.domain_set = _domain_set;
|
||||||
|
|
||||||
|
if config.domain_set {
|
||||||
|
if config.domain.ends_with('/') {
|
||||||
|
println!("[WARNING] The configured domain ends with a trailing slash.");
|
||||||
|
println!("[WARNING] The trailing slash is getting removed.");
|
||||||
|
config.domain = config.domain.trim_end_matches('/').to_string();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
config.signups_domains_whitelist = config.signups_domains_whitelist.trim().to_lowercase();
|
config.signups_domains_whitelist = config.signups_domains_whitelist.trim().to_lowercase();
|
||||||
config.org_creation_users = config.org_creation_users.trim().to_lowercase();
|
config.org_creation_users = config.org_creation_users.trim().to_lowercase();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue