0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-11-12 04:52:47 +01:00

Fix .env path traversal issue

This commit is contained in:
Daniel García 2019-02-06 14:54:39 +01:00
parent a72809b225
commit 89840790e7
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A

View file

@ -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();
$($( $($(