mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-10-26 07:50:02 +02:00
Fix .env path traversal issue
This commit is contained in:
@@ -44,7 +44,7 @@ macro_rules! make_config {
|
|||||||
|
|
||||||
impl ConfigBuilder {
|
impl ConfigBuilder {
|
||||||
fn from_env() -> Self {
|
fn from_env() -> Self {
|
||||||
dotenv::dotenv().ok();
|
dotenv::from_path(".env").ok();
|
||||||
|
|
||||||
let mut builder = ConfigBuilder::default();
|
let mut builder = ConfigBuilder::default();
|
||||||
$($(
|
$($(
|
||||||
|
|||||||
Reference in New Issue
Block a user