Browse Source

Fix .env path traversal issue

pull/391/head
Daniel García 6 years ago
parent
commit
89840790e7
No known key found for this signature in database GPG Key ID: FC8A7D14C3CD543A
  1. 2
      src/config.rs

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

Loading…
Cancel
Save