From 89840790e75d90241db196a55dd3856684f48b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Wed, 6 Feb 2019 14:54:39 +0100 Subject: [PATCH] Fix .env path traversal issue --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index b8e51f43..6df2bc63 100644 --- a/src/config.rs +++ b/src/config.rs @@ -44,7 +44,7 @@ macro_rules! make_config { impl ConfigBuilder { fn from_env() -> Self { - dotenv::dotenv().ok(); + dotenv::from_path(".env").ok(); let mut builder = ConfigBuilder::default(); $($(