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 {
fn from_env() -> Self {
dotenv::dotenv().ok();
dotenv::from_path(".env").ok();
let mut builder = ConfigBuilder::default();
$($(