commit 89840790e75d90241db196a55dd3856684f48b2d
parent a72809b225bc66d5b819113b23f877c29c264d06
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Wed, 6 Feb 2019 14:54:39 +0100
Fix .env path traversal issue
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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();
$($(