mirror of
https://github.com/ViViDboarder/bitwarden_rs.git
synced 2024-11-22 05:06:37 +00:00
Fix .env path traversal issue
This commit is contained in:
parent
a72809b225
commit
89840790e7
@ -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();
|
||||||
$($(
|
$($(
|
||||||
|
Loading…
Reference in New Issue
Block a user