Browse Source

Fix .env path traversal issue

Daniel García 6 years ago
parent
commit
89840790e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/config.rs

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