mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-12-23 11:29:04 +00:00
Fix .env path traversal issue
This commit is contained in:
parent
a72809b225
commit
89840790e7
@ -44,7 +44,7 @@ macro_rules! make_config {
|
|||||||
|
|
||||||
impl ConfigBuilder {
|
impl ConfigBuilder {
|
||||||
fn from_env() -> Self {
|
fn from_env() -> Self {
|
||||||
dotenv::dotenv().ok();
|
dotenv::from_path(".env").ok();
|
||||||
|
|
||||||
let mut builder = ConfigBuilder::default();
|
let mut builder = ConfigBuilder::default();
|
||||||
$($(
|
$($(
|
||||||
|
Loading…
Reference in New Issue
Block a user